Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Prevent completion of a survey

More
8 years 1 month ago - 8 years 1 month ago #157082 by pesolution
Can I prevent survey completion? In my case I have a yes/no question and if the answer is 'no' I want the survey to stop without completion status. Is this possible?

Unfortunately I cannot find anything that will help me solve this problem. Does anyone on here have an idea?
Last edit: 8 years 1 month ago by pesolution.
The topic has been locked.
More
8 years 1 month ago #157085 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: pesolution
The topic has been locked.
More
8 years 1 month ago #157095 by pesolution
I feel like this works with open surveys only. I have a closed survey with invitations. I need the survey to be halted until undefined. The survey must not be closed and definitely has to stay open. I feel like a quota will not work in this way.
The topic has been locked.
More
8 years 1 month ago #157106 by tpartner
I'm not sure I understand completely. You want to prevent the respondent from completing now but allow them back in later?

If so, I don't have a solution.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 1 month ago - 8 years 1 month ago #157110 by pesolution
Exactly.

Well I'll go with manually reopen the survey for that key then. The survey is not anonymous so that is not in the way. It was just a question of automation.

Thank you anyway. :)
Last edit: 8 years 1 month ago by pesolution.
The topic has been locked.
More
8 years 1 month ago #157185 by holch
But the quota doesn't close the whole survey. It just closes the survey for those that give the wrong answer. In your case you set a zero quota for those that give the wrong answer and they will be screened out. Everyone that gives the right answer can continue.

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.
The topic has been locked.
More
8 years 1 month ago #157234 by DenisChenu
@holch you're right , but there are an issue hard to resolve with token. If you want a token for multiple response : it broke all response, not only one :).

Hard to resolve : because most user want that solution, not @pesolution need.

For @pesolution : add condition to all group after to question.NAOK=="Y" and put such string on end message

{if(question.NAOK=="Y","Ok, survey submited","Not OK survey closed")}

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.
The topic has been locked.
More
8 years 1 month ago - 8 years 1 month ago #157303 by pesolution
Thank you for the contribution.

The use case is rather unusual, but I'm stuck with it. I have a closed survey and a distribution of tokens of some kind that can lead to errors. Speak: People might get stuck with the wrong token leading them to somebody else's survey.

Now I was thinking of an initial question to validate the user's name. Something along the line "Are you <xy>?" and a y/n forced choice. If they click yes - go ahead.
If they click no - please contact administrator to resolve the issue.

It just would have been nice for the survey of that respective token to stay open. Even better: to reset said token.
Last edit: 8 years 1 month ago by pesolution.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose