set conditions for mandatory option

More
4 years 3 months ago #96738 by shadow01
shadow01 created the topic: set conditions for mandatory option
Hi,

My survey has 4 questions and the last two having the long free text question type. I want that my respondents answer either the 3rd or the 4th question or both but not neither. There should be at least one of these last two questions answered. Can I do this and how? I just tried the is_empty function in the conditions but this would trigger if the next question is shown or not. I would have wanted that the condition be used to identify if the question is set to mandatory or not. Thanks!

Please Log in to join the conversation.

More
4 years 3 months ago #96749 by tpartner
tpartner replied the topic: set conditions for mandatory option
Given question codes "q3" and "q4" for the long-texts, try this as the whole question validation equation:
strlen(q3) > 0 OR strlen(q4) > 0

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.

Start now!

Just create your account and start using Limesurvey today.

Register now