Welcome to the LimeSurvey Community Forum

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

How can we end the survey early based on user response to a question?

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 months ago - 3 years 2 months ago #224433 by eniisula
I have a question that for a specific answer of that question I need to submit the survey and not show the other following questions. Is there a way to do this? How can I end survey for a specific answer checked? Thank you in advance. 
Last edit: 3 years 2 months ago by eniisula.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #224438 by holch
You basically want a "Screenout". This works with "quota", or what we call "zero quota".

You create a quota based on the question and as the quota amount yo assign zero.

E.g. you have question "male/female", but you only want women to participate. So you put a quota with the value of "0" on the response "male" and all respondents that answer "male" will be screened out.

They do not get to the "normal" end screen, but to a specific end screen for this specific quota (you can have more than 1 quota per survey).

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 following user(s) said Thank You: DenisChenu, eniisula
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 months ago #224442 by eniisula
Thank you for your feedback!

Is it possible if you could briefly explain how to use quotas. I added a quota but does not seem to work. What should I put on the limit?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #224444 by holch
We can't explain all the basics in the forum. This is what the manual is for.

www.limesurvey.org/manual/Survey_quotas

What should I put on the limit?


Not sure what you mean with that.

Quotas only have an effect when the survey is active. Because if the survey is not active and you test, nothing is written to the database and thus limesurvey has no reference for the quota. So to test if your quota works, active the survey.

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 following user(s) said Thank You: eniisula
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 months ago #224446 by eniisula
Yes I know that but they still do not have an effect. I do not know what am I doing wrong when creating quotas.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #224450 by holch
Then show us what you did.

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.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 months ago #224452 by eniisula
1. Opened Quotas
2. Clicked add new quota
3. Typed quota name S4
4. At limit field I typed 0
5. Clicked save
6. A table was shown where I could add answers
7. I added two answers of the same question that I wanted to terminate the survey when they were clicked.
8. I activated the quotas and checked the survey. The quotas didn't make the survey end when one of them was clicked. Even with one answer in quota it didn't work.
Since this is the first time I'm using lime survey I don't know where I went wrong.
Thank you again for your help!
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #224453 by holch
If you add two questions, it is a AND connection, not an OR, I think.

It is always better to show a screenshot or a LSS file, because we can then better understand your requirements.

Your description says nothing about the type of question (single, multiple, etc).

8. I activated the quotas and checked the survey. The quotas didn't make the survey end when one of them was clicked. Even with one answer in quota it didn't work.


What do you mean with "actived the quotas"? There is no option to "activate quotas", they are active when you saved them.

But you did not mention if you have activated the survey, which is essential. In the preview of the survey the quotas will NOT work.

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.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 months ago #224455 by eniisula
I have activated the survey. The question is single (list-radio). On the bottom left of the picture is the word activate, that is what I mentioned before. 
Attachments:
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #224456 by holch
Ok, never noticed that "Active" thing.

But looking at your quota, you added 2 answers to the same question. Now this quota condition will never be true for a single choice question. I think what you are screening are basically people that have marked both questions, which is basically impossible in a single choice question, they only can pick one.

However, you said if you just put one of those answers, it is the same?

Please upload a copy of your survey as LSS file, with only the relevant questions (copy your survey, delete all questions that are not necessary and export it as LSS file and upload it here).

Very difficult to say what is going wrong with the information you provide.

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.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 months ago #224511 by eniisula
Thank you for all you feedback! I figured it out where was my mistake.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 2 months ago #224547 by DenisChenu

But looking at your quota, you added 2 answers to the same question. Now this quota condition will never be true for a single choice question. I think what you are screening are basically people that have marked both questions, which is basically impossible in a single choice question, they only can pick one.
 
If not : it's a deprecated feature.
In 2.6 : using 2 value for a single choice use OR condition : because it's the best situation.

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.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose