Welcome to the LimeSurvey Community Forum

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

Can I jump to an End Screen if a certain Condition is MET?

  • selensbb
  • selensbb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 2 days ago #239907 by selensbb
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hi, when recruiting for participants, I want to check for certain answers and direct the survey to a specific end screen with a specific thank you msg. Is it possible with lime survey? Or I have to set the conditions one by one to achieve this ?
For instance I have a text where info about our task is explained, and participants are only directed to the questions if they click yes, I want to participate option. If they click no, I want them to read a thank you, next time msg.
I am wondering if there is a way to do it without working through all of the questions.
Thanks!!!

PS: I am super new to limesurvey, I tried to read through the forum but wasn't able to find a clear solution.
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 days ago #239909 by Joffm
Hi,
to achieve this you use a quota.
A quota with a limit of "0" because you want to have 0 participants, who answer "No".

​​​​​​And there is the option to display a customized message if the participant is screened out.

Best you read the manual about quotas, create a small prototype of your survey and send the lss export.

Then we can help better.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • selensbb
  • selensbb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 1 day ago #239921 by selensbb
Thank you that actually helped immensely, and worked. But, it produced another question: Can I apply the quota function to the subquestions?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 day ago #239922 by Joffm
Yes.
You read in the manual which questions are supported directly.
In other cases you have to create an equation to decide if "proceed" or not.
Also explained in the manual.
[url] www.limesurvey.org/manual/Survey_quotas/..._other_question_type [/url]
Nowadays it is not necessary to assign the calculated value to another question.
You can use the equation (eq1) directly, like
{if(strtolower(Q00.NAOK) == 'ok', 1, 0)}
Set the quota question to "eq1" and the answer to the "screen out value".

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • selensbb
  • selensbb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 21 hours ago - 2 years 21 hours ago #239928 by selensbb
Hello agian,
So what I wanted to do is:
1) Edit subquestion quotas of an array. Terminate the survey if some of the subquestions are "yes, acute". Or in other words, only allow "no,never" as an option to certain array subquestions.

My second question is optional, cause it might not be possible:
2) Do not allow participants to select the same date as an appointment more than 3 times. So only 3 participants will be allowed to pick 15.05 as an appointment date.

I tried the equation, but it was not clear for me to edit the array subquestions like that.
Thank you very much in advance!


File Attachment:

File Name: Prototype.lss
File Size:20 KB
Last edit: 2 years 21 hours ago by selensbb.

Please Log in to join the conversation.

More
2 years 21 hours ago #239929 by jelo

1) Edit subquestion quotas of an array. Terminate the survey if some of the subquestions are "yes, acute". Or in other words, only allow "no,never" as an option to certain array subquestions.
 
A quota allows you to filter out after an answer has been made. You would set a quota with zero for the answer "yes, acute". If someone chose that answer, the quota of 0 will be triggered and the survey is terminated. If someone chose no,never no quota is triggered and the survey continues. You might need to create many quotas depending the answers your questions have and in which constellations the quota should trigger.



 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • selensbb
  • selensbb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 20 hours ago #239933 by selensbb
Quotas do not work with array questions. When I tried to put a quota on the array question in the file I uploaded, it receives a feedback as in no available questions for quota function

Please Log in to join the conversation.

  • selensbb
  • selensbb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 20 hours ago #239934 by selensbb

1) Edit subquestion quotas of an array. Terminate the survey if some of the subquestions are "yes, acute". Or in other words, only allow "no,never" as an option to certain array subquestions.

 
A quota allows you to filter out after an answer has been made. You would set a quota with zero for the answer "yes, acute". If someone chose that answer, the quota of 0 will be triggered and the survey is terminated. If someone chose no,never no quota is triggered and the survey continues. You might need to create many quotas depending the answers your questions have and in which constellations the quota should trigger.


Quotas do not work with array questions. When I tried to put a quota on the array question in the file I uploaded, it receives a feedback as in no available questions for quota function
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 20 hours ago #239935 by Joffm
Hi,
the equation is quite easy.
What is your condition?
One or more mentions of "yes, acute".

In the implemented functions
[url] www.limesurvey.org/manual/ExpressionScri...mplemented_functions [/url]
you find the function "countif"

So your equation (I called it eqMQ (equation Medical Questions) will be
{if(countif("A3",that.MedicalQuestions.NAOK)>0,1,0)}
Meaning: If the count of "A3" in this question is greater than 0 the value of the equation is 1, else 0.

And now you set the quota accordingly
 

Or in other words, only allow "no,never" as an option to certain array subquestions.

Exactly the same.  Depends a bit on your answer options. Probably I'd prefer the function "countifop"
E.g. countifop("<","code of no,never",that.Q1.NAOK)==0 (If you use numerical codes and "no, never" is the highest code, the count of codes less than this must be "0".
Or the same the other way around:
countif("code of no,never",that.Q1.NAOK)==count(that.Q1.NAOK) (The count of "no,never" must be equal to the amount of subquestions)

And for your second question:
Obviously you can't set a quota for each possible date (you didn't set a min date nor a max date)
Unfortunately you did not answer the initial questions about the LimeSurvey version you are using nor about the place where it is hosted.
So we cannot advise because we do not know whether you are allowed to install plugins or you can activate a built in plugin.

Joffm



 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose