Using remotecontrol 2, I'd like to be able to delete the response corresponding to a token or, if that is impossible, to reset all of the questions and subquestions for a response to "No answer".
The reason for this is that I want potential users of the survey to be able to try it out and the tokens contain a lot of fields used in the survey.
I will use Drupal to send the remotecontrol commands to Limesurvey and to manage the entire process.
So, would someone need to add a function to remotecontrol to delete a given response and/or a function to iterate through all questions and subquestions so that they can be reset or does anything along these lines (or another solution) exist?
But if the goal is to allow respondents to "test" the survey, why not give them access to the clearall button to remove the response or give the tokens multiple uses?
Cheers,
Tony Partner Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
I think providing the clear all button could be a workable solution, although not ideal (the user would see a previous tester's results, clear them, and start over). If I do this, what might I have to do to make the "clear all" button appear?
Also, since the "clear all" button exists, does that mean that the function behind it could be added fairly easily to remotecontrol?
I should probably clarify that each token has a number of attributes that have been set and that are important to how the survey is presented. This is why even a tester needs a token and why I want to reset the response or delete it, so that the user can create a new response.
Maybe I'm going about this the wrong way, but I create tokens in Drupal as well as a number of attributes. They are then synchronized with Limesurvey.
I suppose I could basically clone these tokens for each tester, but I think it is easier to reuse them, along with their attributes. The tester sees a series of links (they are rating several other people), each of which corresponds to a token and is a link to Limesurvey with the appropriate link.