Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Conditions for dropdown options

  • G0udappel
  • G0udappel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago - 3 years 1 month ago #212519 by G0udappel
Conditions for dropdown options was created by G0udappel
Hi all,

I have a question regarding conditions for dropdown options. In my set-up I repeat 2 questions multiple times, only unique combinations of options may be answered.
I would like to visualize this by letting options in the second question not reappear. 

For example:
Question 1 has option 1, option 2 and option 3
Question 2 has option 1, option 2 and option 3.
These two questions are repeated several times.

Round 1:  Respondent answers Q1 with opt1 and Q2 with opt2.
Round 2:  Respondent should now be able to:
answer Q1 with opt 1 and Q2 with opt1 or opt 3. or
answer Q1 with op2 or opt3 and Q2 with opt1, opt2, or opt.3

In my survey there will be far more options than in the given example.
I have included a file, in which I have added the script from this forum post. forums.limesurvey.org/forum/can-i-do-thi...dropdown-menu-values
It perfectly works for removing options from drop down questions. But now I'm hoping it can be altered to fix my problem... 

 

File Attachment:

File Name: limesurvey...8479.lss
File Size:40 KB
Last edit: 3 years 1 month ago by G0udappel.
The topic has been locked.
  • G0udappel
  • G0udappel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #212554 by G0udappel
Replied by G0udappel on topic Conditions for dropdown options
Question visualized:

 
I chose option 1 and "ploeg 1".
So in round 2 when option 1 is selected, ploeg 1 should not reappear. Like this:


Note: I spoke of repeating variables... But  they are of course new variables with the same lay-out.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #212561 by tpartner
Replied by tpartner on topic Conditions for dropdown options
This will take a fair amount of development. You will need to clone the select elements so you can dynamically reset them if answers are changed.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • G0udappel
  • G0udappel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #212576 by G0udappel
Replied by G0udappel on topic Conditions for dropdown options
Could you please elaborate somewhat?
The topic has been locked.
  • G0udappel
  • G0udappel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #212589 by G0udappel
Replied by G0udappel on topic Conditions for dropdown options
I did something which might be in the way of what you have in mind.
Please see:
 

File Attachment:

File Name: limesurvey... (1).lss
File Size:50 KB
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose