Welcome, Guest
Username: Password: Remember me

TOPIC: Multiple choice exclusive answers

Multiple choice exclusive answers 2 years 4 months ago #83497

  • dspaan
  • dspaan's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 68
  • Karma: 0
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.
The administrator has disabled public write access.

Re: Multiple choice exclusive answers 2 years 4 months ago #83500

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
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
The administrator has disabled public write access.

Re: Multiple choice exclusive answers 2 years 4 months ago #83503

  • dspaan
  • dspaan's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 68
  • Karma: 0
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
The administrator has disabled public write access.

Re: Multiple choice exclusive answers 2 years 4 months ago #83505

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
Ah, looks like that attribute is missing for several question types, including Multiple Choice. That's an easy fix.
The administrator has disabled public write access.

Re: Multiple choice exclusive answers 2 years 4 months ago #83545

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
This has been fixed. Here is a sample survey showing that example plus several others.


File Attachment:

File Name: ls2_em_validation_q.lss
File Size: 63 KB
The administrator has disabled public write access.

Re: Multiple choice exclusive answers 2 years 3 months ago #84098

  • dspaan
  • dspaan's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 68
  • Karma: 0
Hi,

Thanks for the update. Does this mean i have to upgrade limesurvey in order to be able to use this?
The administrator has disabled public write access.

Re: Multiple choice exclusive answers 2 years 3 months ago #84113

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
Yes
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.220 seconds
Donation Image