only one question should be answered in a question group

More
4 years 11 months 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 or Create an account to join the conversation.

More
4 years 11 months 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 or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!