Exclusive Option in Ranking

More
3 months 1 week ago #208272 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.

File Attachment:

File Name: limesurvey...9052.lsq
File Size:4 KB


Can someone assist?
Attachments:

Please Log in to join the conversation.

LimeSurvey Partners
More
3 months 1 week ago #208305 by tpartner
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.

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.

More
3 months 1 week ago #208311 by blocka
Replied by blocka on topic Exclusive Option in Ranking
Version 3.25.0+201117

File Attachment:

File Name: limesurvey...9052.lsq
File Size:4 KB
Attachments:

Please Log in to join the conversation.

More
3 months 1 week ago - 3 months 1 week ago #208312 by tpartner
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.

More
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!
Attachments:

Please Log in to join the conversation.

More
3 months 1 week ago - 3 months 1 week ago #208314 by tpartner
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.

(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:

File Attachment:

File Name: limesurvey...9433.lss
File Size:16 KB


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.

More
3 months 1 week ago #208315 by blocka
Replied by blocka on topic Exclusive Option in Ranking
Thanks muchly! That works perfectly.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now