Welcome to the LimeSurvey Community Forum

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

Setting conditions for multiple choice options

  • IsabellaAnglin
  • IsabellaAnglin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #194144 by IsabellaAnglin
Setting conditions for multiple choice options was created by IsabellaAnglin
Hello!
I am making a question with multiple choice options. I would like to participants to choose exactly two answers, unless they do not know (which is another option) or choose 'Other' as an option. In those cases, it would be enough if they only choose one option.

How do I ensure that they must choose two of the standard options (Outlet A, B, C, D, or E), but are exempted from this condition if they choose 'Don't know' or 'Other'?

Thanks in advance!
Isabella

Example question for reference:

Please choose the two most common outlets in your municipality.
- Outlet A
- Outlet B
- Outlet C
- Outlet D
- Outlet E
- Other (with comment box)
- Don't know
The topic has been locked.
More
4 years 1 month ago #194239 by lfanfoni
Replied by lfanfoni on topic Setting conditions for multiple choice options
In attacchment you find a sample group that you can import and evaluate the solution.
The equation I use for validation is:
((count(self)==2) AND (is_empty(Outlet_Adont.NAOK))) OR ((count(self)==1) AND (Outlet_Adont.NAOK=='Y'))

where "Outlet" is the question_code and "Adont" the subquestion_code for "Don't know".
To specify other outlet, I used a conditioned text question.

Se mi vuoi contattare, non mandare messaggi privati qui, bensì scrivi a lfanfoni at gmail.com
Per le livestream in italiano vai su: www.youtube.com/playlist?list=PLOSjjxAG9...SiiCsSz_JxIH7xJwLdPd
Le soluzioni LimeSurvey per l'Italia si trovano su: github.com/lfanfoni
The following user(s) said Thank You: tpartner
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose