Multiple choice exclusive answers

More
4 years 10 months ago #83497 by dspaan
dspaan created the topic: Multiple choice exclusive answers
Hello,

I was wondering if the following is possible. I have a multiple choice question where i don't want to allow certain answers in combination with each other. I did notice the exclusive option but this only looks for all checkboxes to be selected where i would like to specify some of them.

Please Log in to join the conversation.

More
4 years 10 months ago #83500 by TMSWhite
TMSWhite replied the topic: Multiple choice exclusive answers
Use the Whole Question Validation option and associated tip .

Say your question is q1, and the options are A-F, but users should never enter A+B or C+F, the validation equation would be:
!((q1_A=="Y" && q1_B=="Y") || (q1_C=="Y" && q1_F=="Y"))

And the tip might be:
That combination of answers is not allowed

Please Log in to join the conversation.

More
4 years 10 months ago #83503 by dspaan
dspaan replied the topic: Multiple choice exclusive answers
Thanks good sir!

Only i can't find the boxes i see in the documentation needed for the validation equation and tip.

I'm running Limesurvey Version 1.92+ Build 120412

Please Log in to join the conversation.

More
4 years 10 months ago #83505 by TMSWhite
TMSWhite replied the topic: Multiple choice exclusive answers
Ah, looks like that attribute is missing for several question types, including Multiple Choice. That's an easy fix.

Please Log in to join the conversation.

More
4 years 10 months ago #83545 by TMSWhite
TMSWhite replied the topic: Multiple choice exclusive answers
This has been fixed. Here is a sample survey showing that example plus several others.


File Attachment:

File Name: ls2_em_val...on_q.lss
File Size:63 KB
Attachments:

Please Log in to join the conversation.

More
4 years 9 months ago #84098 by dspaan
dspaan replied the topic: Multiple choice exclusive answers
Hi,

Thanks for the update. Does this mean i have to upgrade limesurvey in order to be able to use this?

Please Log in to join the conversation.

More
4 years 9 months ago #84113 by TMSWhite
TMSWhite replied the topic: Multiple choice exclusive answers
Yes

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now