show if at least two options in previous question is checked

More
4 years 10 months ago #91450 by adishardis
adishardis created the topic: show if at least two options in previous question is checked
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?

Please Log in to join the conversation.

More
4 years 10 months ago #91454 by tpartner
tpartner replied the topic: show if at least two options in previous question is checked
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.

Please Log in to join the conversation.

More
4 years 10 months ago #91482 by adishardis
adishardis replied the topic: show if at least two options in previous question is checked
Thanks a bunch! :)

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!