Check out the LimeSurvey source code on GitHub!

set conditions for mandatory option

More
3 years 7 months ago #96738 by shadow01
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
3 years 7 months ago #96749 by tpartner
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.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form