- Posts: 351
- Thank you received: 26
Exclusive Option in Ranking
3 months 1 week ago #208272
by blocka
Exclusive Option in Ranking was created by blocka
I have a ranking question that has 6 options. Two of which are: Not sure and No preference.
If either of these are included the ranking, then no other options should be allowed to be ranked.
I've attached my question file. I found another post that talked about exclusive options in a ranking question, so I copied the suggested validation logic. But when you look at the question, pretty obvious it doesn't work -- just not so obvious to be me how to make it work.
Can someone assist?
If either of these are included the ranking, then no other options should be allowed to be ranked.
I've attached my question file. I found another post that talked about exclusive options in a ranking question, so I copied the suggested validation logic. But when you look at the question, pretty obvious it doesn't work -- just not so obvious to be me how to make it work.
Can someone assist?
Attachments:
Please Log in to join the conversation.
Less
More
- Posts: 9908
- Thank you received: 3189
3 months 1 week ago #208305
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Replied by tpartner on topic Exclusive Option in Ranking
LimeSurvey version?
Please attach survey exports (.lss files) containing only the relevant question(s). Question/group exports force us to do more work trying to help you.
Please attach survey exports (.lss files) containing only the relevant question(s). Question/group exports force us to do more work trying to help you.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Please Log in to join the conversation.
3 months 1 week ago #208311
by blocka
Replied by blocka on topic Exclusive Option in Ranking
Attachments:
Please Log in to join the conversation.
Less
More
- Posts: 9908
- Thank you received: 3189
3 months 1 week ago - 3 months 1 week ago #208312
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Replied by tpartner on topic Exclusive Option in Ranking
Still no .lss file.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 3 months 1 week ago by tpartner.
Please Log in to join the conversation.
3 months 1 week ago #208313
by blocka
Replied by blocka on topic Exclusive Option in Ranking
Note to self: Never do any work before having coffee.
LSS finally attached!
LSS finally attached!
Please Log in to join the conversation.
Less
More
- Posts: 9908
- Thank you received: 3189
3 months 1 week ago - 3 months 1 week ago #208314
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Replied by tpartner on topic Exclusive Option in Ranking
Given that the question code is Q51, the exclusive answer codes are 5 and 6 and there are maximum 3 answers, this should be the question validation equation.
Sample survey attached:
Having said that, it may be an idea to insert a previous question asking whether they want to rank and use relevance to hide/show the ranking question. (I find it odd to rank an option "Unsure" or "No preference")
(Q51_1 == '5' AND is_empty(Q51_2) AND is_empty(Q51_3))
OR
(Q51_1 == '6' AND is_empty(Q51_2) AND is_empty(Q51_3))
OR
(Q51_1 != '5' AND Q51_2 != '5' AND Q51_3 != '5' AND Q51_1 != '6' AND Q51_2 != '6' AND Q51_3 != '6')
Sample survey attached:
Having said that, it may be an idea to insert a previous question asking whether they want to rank and use relevance to hide/show the ranking question. (I find it odd to rank an option "Unsure" or "No preference")
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Attachments:
Last edit: 3 months 1 week ago by tpartner.
Please Log in to join the conversation.