Single Choice with Question Validation

More
2 months 6 days ago #203156 by scene143
Hi,


I have one single choice question which will have previous question logic.

I created a single choice radio button and try to write a Question validation but it's not working properly.


Here the Logic

Solus Homemade batter users Only 3 coded from S7c 1
Solus Unbranded batter users Only 1 coded from S7c 2
Solus Branded batter users Only 2 coded from S7c 3


S8 is a single choice and QS7c is a multi-choice question.

I tried this below syntax in the Question validation equation.

(if (QS8=="1",QS7c_SQ003=="Y" and QS7c_SQ001!="Y" and QS7c_SQ002!="Y"),
if (QS8=="2",QS7c_SQ001=="Y" and QS7c_SQ002!="Y" and QS7c_SQ003!="Y"),
if (QS8=="3",QS7c_SQ002=="Y" and QS7c_SQ001!="Y" and QS7c_SQ003!="Y"))

Can anyone help me with this Syntax?

Regards
Sara

Please Log in to join the conversation.

LimeSurvey Partners
More
2 months 6 days ago #203162 by tpartner
I think this:

(QS8 == "1" AND QS7c_SQ003 == "Y" AND QS7c_SQ001 != "Y" AND QS7c_SQ002 != "Y")
OR
(QS8 == "2" AND QS7c_SQ001 == "Y" AND QS7c_SQ002 != "Y" AND QS7c_SQ003 != "Y")
OR
(QS8 == "3" AND QS7c_SQ002 == "Y" AND QS7c_SQ001 != "Y" AND QS7c_SQ003 != "Y")

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
2 months 6 days ago #203172 by scene143
Thank you very much

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now