I've just started using Limesurvey and I'd like to implement the ability for my participants to end the survey they are taking without completing all questions - for example on Q15 of 30 be able to press an "End Now" button and have their 15 completed answers recorded and all remaining ones left blank.
I do need all questions to be mandatory, as this is almost like an emergency feature - all answers are needed but some are preferable to none if participants run out of time or something.
Is this something that can be done? At worst I can ask participants to simply close their browser tab, as I'm assuming that answers are recorded one by one and not in batches, but I'd like to avoid this.
All responses are recorded up to the page were they leave (these questions are not recorded). The only thing is, that they are marked as not completed in the database.
The only thing that I see at the moment is to add one question on each page of Q15-30 that says "I want to quit the survey" and then you need to set all subsequent questions to hidden via conditions.
Probably best is to create a hidden equation question where you can write in that the survey should be closed and then the conditions or relevance equations only need to look at this hidden equation.
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.
In each group I place a hidden check-box question - "Continue". This is checked by JavaScript when the page loads and the next group is shown conditionally on it being checked.
Then I use JavaScript to insert a "Quit" button that when clicked:
- Pops up a confirmation request
- If confirmed, unchecks the hidden question and clicks the "Next" button
Then the page is submitted and all subsequent groups are hidden, ending the survey.
Of course, all mandatory questions on a given page must be answered before "Quit" works.
.
Cheers,
Tony Partner Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Thank you both for the suggestions. For the sake of time, I've gone for the quick and dirty workaround of adding a line of Javascript to the template displaying a "Click here to end" link which closes the tab, but I will be playing around with this more in the future.
Hi fvanderstarre, unfortunately I have since lost the template I originally used this in, but I was able to find
this
bookmarked in my notes for that project. I'm fairly sure I simply used window.close(), which I would have put into the endpage.pstpl, but that link has a few alternatives depending on what works for you.