Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: show if at least two options in previous question is checked

show if at least two options in previous question is checked 3 years 6 months ago #91450

  • adishardis
  • adishardis's Avatar
  • Offline
  • Premium Lime
  • Posts: 69
  • Karma: 0
Or the other way around, I want to hide a question if only one option has been checked in previous question.

How do I achieve that?
The administrator has disabled public write access.

show if at least two options in previous question is checked 3 years 6 months ago #91454

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6122
  • Thank you received: 1357
  • Karma: 533
If, for example, the first question is a multiple-options with question code "Q1" and answer codes "A1", "A2","A3","A4", then the relevance equation for Q2 would be:
sum(Q1_A1.NAOK == 'Y', Q1_A2.NAOK == 'Y', Q1_A3.NAOK == 'Y', Q1_A4.NAOK == 'Y') > 1
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

show if at least two options in previous question is checked 3 years 6 months ago #91482

  • adishardis
  • adishardis's Avatar
  • Offline
  • Premium Lime
  • Posts: 69
  • Karma: 0
Thanks a bunch! :)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.255 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form