Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Exiting an optional survey

Exiting an optional survey 5 years 2 months ago #61186

  • pchristoph
  • pchristoph's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 15
  • Karma: 0

We're displaying a survey using an overlay on an existing site (limesurvey is running on a different server). For some surveys the user shall have the option to take part or not. Now I would like to add a button which gives the user that option i.e. to exit the survey and close the overlay. The trouble is that according to that users record in the limesurvey DB he/she has not taken part in the survey yet and therefore our overlay keeps opening up.
To show the overlay for a given user I am querying the tokens table to check whether COMPLETED is set to 'N' and when it still is, then we display the survey.

Is there some ootb functionality to use to do that? I was thinking of using the "exit survey and clear all answers" option but we're considering keeping any data the user has entered so far, thus we would relabel the button to display something else.

Any ideas?

The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.454 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form