only one question should be answered in a question group

More
4 years 3 weeks ago #98610 by first
first created the topic: only one question should be answered in a question group
I have display order group by group and I have two multi choice questions (D1 and D1Other) in a group .I want only one question must be answered. I have validation equation (((count(that.D1.NAOK)) >0) || ((count(that.D1Other.NAOK)) >0)) so that at least one of them should be answered .Can some one suggest how can I modify this equation so that only one question must be answered?

Survey Designer and Programmer

Please Log in to join the conversation.

More
4 years 3 weeks ago #98617 by first
first replied the topic: only one question should be answered in a question group
(((((count(that.D1.NAOK)) >0) || ((count(that.D1Other.NAOK)) >0))) && (!(((count(that.D1.NAOK)) >0) && ((count(that.D1Other.NAOK)) >0)))) should work fine:)

Survey Designer and Programmer

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now