- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I exclude a participant with quotas who selects the "other" option?
- LGimbel
- Topic Author
- Offline
- New Member
Less
More
6 months 2 weeks ago - 6 months 2 weeks ago #251051
by LGimbel
Can I exclude a participant with quotas who selects the "other" option? was created by LGimbel
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.8+230227
Own server or LimeSurvey hosting: Own server
Survey theme/template: Custom
==================
Hello,
I'm sure this question was asked before but I couldn't find it, so please either show me where to find it or answer my question, it would help a lot!
I'm working on a questionnaire that has some exclusion criteria and I used Quotas with a limit of 0 to end the questionnaire for those who ticked a certain answer. My problem is, that in some questions the exclusion criteria is when the participant ticks the "other" option, which is not possible to select in Quotas. I then thought to use a Text Entry Question and call it others, but its not selectable in Quotas aswell. Now, is there a solution to my problem?
Thanks a lot, Lasse
Your LimeSurvey version: 5.6.8+230227
Own server or LimeSurvey hosting: Own server
Survey theme/template: Custom
==================
Hello,
I'm sure this question was asked before but I couldn't find it, so please either show me where to find it or answer my question, it would help a lot!
I'm working on a questionnaire that has some exclusion criteria and I used Quotas with a limit of 0 to end the questionnaire for those who ticked a certain answer. My problem is, that in some questions the exclusion criteria is when the participant ticks the "other" option, which is not possible to select in Quotas. I then thought to use a Text Entry Question and call it others, but its not selectable in Quotas aswell. Now, is there a solution to my problem?
Thanks a lot, Lasse
Last edit: 6 months 2 weeks ago by LGimbel.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12944
- Thank you received: 3981
6 months 2 weeks ago #251055
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Can I exclude a participant with quotas who selects the "other" option?
Hi, Lasse,
in this case you have to create equations like
{if(Q1=='-oth-',1,0)}
or
{if(!is_empty(Q1_other),1,0)}
Well, depends on the type of question. The best - as always - activate the survey, enter some data to see how the "Other" options are coded.
Then you set the quota on this equation.
Joffm
in this case you have to create equations like
{if(Q1=='-oth-',1,0)}
or
{if(!is_empty(Q1_other),1,0)}
Well, depends on the type of question. The best - as always - activate the survey, enter some data to see how the "Other" options are coded.
Then you set the quota on this equation.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- LGimbel
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
6 months 2 weeks ago - 6 months 2 weeks ago #251064
by LGimbel
Replied by LGimbel on topic Can I exclude a participant with quotas who selects the "other" option?
Hi Joffm,
thanks a lot for your quick reply.
I'm note sure where to use the codes you told me, I pasted them into the Condition field in the questions Settings. But when I do so and acitvate the survey, the whole question is not shown.
To find out how the question is coded I checked html code but as far as I know it is right if I use the term "andere" right?
Thanks, Lasse
thanks a lot for your quick reply.
I'm note sure where to use the codes you told me, I pasted them into the Condition field in the questions Settings. But when I do so and acitvate the survey, the whole question is not shown.
To find out how the question is coded I checked html code but as far as I know it is right if I use the term "andere" right?
Thanks, Lasse
Last edit: 6 months 2 weeks ago by LGimbel.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
6 months 2 weeks ago #251067
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Can I exclude a participant with quotas who selects the "other" option?
You need to read what Joffm is writing.
So you create equation type questions and make your calculations for the screenout in these equation type questions. Then you set the zero quota on this equation type question and not on the actual question.
in this case you have to create equations like
So you create equation type questions and make your calculations for the screenout in these equation type questions. Then you set the zero quota on this equation type question and not on the actual question.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12944
- Thank you received: 3981
6 months 2 weeks ago #251071
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Can I exclude a participant with quotas who selects the "other" option?
Hi,
as I said before, you have to create a question of type "equation" to generate a variable which you can use in your quota.
If you activate the survey, enter some data, you will see how the answer "Others" looks like.
Now you know the code that is stored in case of "Others" ('-oth-') and you can use what I showed before.
Your quota now refers to this question of type "equation" and the value you used to defined as "screenout" value.
BTW:
In "condition" you enter logical terms that handle the display of questions/groups. If TRUE, the question is displayed, if FALSE it is not displayed.
Please, read the manual about "question types"
[url] manual.limesurvey.org/Question_types/en [/url]
and especially this about ExpressionScript that covers your question
[url] manual.limesurvey.org/ExpressionScript_e...s/en#Answers_storing [/url]
Or the shoert remark in my "Tutorial 4: Gleichungen, Zufall,...", Chapter. 1.3.1.
In the German part, page 11, 12, or so.
Joffm
P.S. Hättest Du auf Deutsch gefragt, wäre alles viel einfacher.
as I said before, you have to create a question of type "equation" to generate a variable which you can use in your quota.
If you activate the survey, enter some data, you will see how the answer "Others" looks like.
Now you know the code that is stored in case of "Others" ('-oth-') and you can use what I showed before.
Your quota now refers to this question of type "equation" and the value you used to defined as "screenout" value.
BTW:
In "condition" you enter logical terms that handle the display of questions/groups. If TRUE, the question is displayed, if FALSE it is not displayed.
Please, read the manual about "question types"
[url] manual.limesurvey.org/Question_types/en [/url]
and especially this about ExpressionScript that covers your question
[url] manual.limesurvey.org/ExpressionScript_e...s/en#Answers_storing [/url]
Or the shoert remark in my "Tutorial 4: Gleichungen, Zufall,...", Chapter. 1.3.1.
In the German part, page 11, 12, or so.
Joffm
P.S. Hättest Du auf Deutsch gefragt, wäre alles viel einfacher.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: LGimbel
Please Log in to join the conversation.
- LGimbel
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
6 months 2 weeks ago #251129
by LGimbel
Replied by LGimbel on topic Can I exclude a participant with quotas who selects the "other" option?
Thanks for your patients and the 2nd round of explaining it to me, now it worked fine.
Best regards, Lasse
P.S. Ja das stimmt, ich dachte, ich erreiche im englischen Forum vielleicht mehr Menschen als im Deutschen... Aber du hast Recht, wäre wahrscheinlich einfacher auf deutsch gewesen.
Best regards, Lasse
P.S. Ja das stimmt, ich dachte, ich erreiche im englischen Forum vielleicht mehr Menschen als im Deutschen... Aber du hast Recht, wäre wahrscheinlich einfacher auf deutsch gewesen.
Please Log in to join the conversation.