Welcome, Guest
Username: Password: Remember me

TOPIC: set conditions for mandatory option

set conditions for mandatory option 1 year 3 months ago #96738

  • shadow
  • shadow's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
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!
The administrator has disabled public write access.

set conditions for mandatory option 1 year 3 months ago #96749

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4184
  • Thank you received: 785
  • Karma: 359
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.139 seconds
Donation Image