Welcome, Guest
Username: Password: Remember me

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

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

  • adishardis
  • adishardis's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • 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 2 years 7 months ago #91454

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5111
  • Thank you received: 1049
  • Karma: 440
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

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

  • adishardis
  • adishardis's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Karma: 0
Thanks a bunch! :)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.444 seconds