How can I put a Restart Button within a Text-Question that immediately clears the responses and jumps back to the start of the survey?
So far I found the original clear all function as:
Code:
<a href="#" data-limesurvey-submit='{ "clearall":"clearall" }' data-confirmedby='{ "confirm-clearall":"confirm" }' data-confirmlabel='Please confirm you want to clear your response?' class=' ls-link-action ls-link-clearall animate' >Exit and clear survey</a>
This function opens a Pop Up with the confirmation Text. After that you will see a link to Restart.
The ideal way would be to directly clear all answers and go back to start. The second beste way would be to at least get rid of the confirmation pop up.
The ideal way would be to directly clear all answers and go back to start.
Not a solution, but maybe food for thought...
I think if you do it this way, you'll probably get a lot of complaints that will tell you, that they didn't know that "leave and delete everything" meant that everything would be deleted...
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
I fully agree to that on a general user perspective and basis. I do have a special usage szenario where this is will only be shown on special conditions.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.