Welcome to the LimeSurvey Community Forum

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

Prevent completion of a survey

  • pesolution
  • pesolution's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago - 7 years 3 months ago #157082 by pesolution
Prevent completion of a survey was created 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: 7 years 3 months ago by pesolution.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #157085 by tpartner
Replied by tpartner on topic Prevent completion of a survey

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.
  • pesolution
  • pesolution's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #157095 by pesolution
Replied by pesolution on topic Prevent completion of a survey
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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #157106 by tpartner
Replied by tpartner on topic Prevent completion of a survey
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.
  • pesolution
  • pesolution's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago - 7 years 3 months ago #157110 by pesolution
Replied by pesolution on topic Prevent completion of a survey
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: 7 years 3 months ago by pesolution.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #157185 by holch
Replied by holch on topic Prevent completion of a survey
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.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 3 months ago #157234 by DenisChenu
Replied by DenisChenu on topic Prevent completion of a survey
@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.
  • pesolution
  • pesolution's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago - 7 years 3 months ago #157303 by pesolution
Replied by pesolution on topic Prevent completion of a survey
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: 7 years 3 months ago by pesolution.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose