Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

only one question should be answered in a question group

  • amendes
  • amendes's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago - 7 years 4 months ago #144385 by amendes
Hi guys & gals,
I Have a group of questions, and tried to use a validation expression on all Questions B1, B2 & B3: on this group that has 3 long text questions, and i'm having some trouble. questions are not obligatory on creation, but from the three, at least one must be answred or it defeats the purpose of the Questionary.
Last edit: 7 years 4 months ago by amendes.
The topic has been locked.
  • amendes
  • amendes's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago #144430 by amendes
hi again guys,

maybe i explained myself badly.

I have a group, that has 3 long text type of questions. All are non-obligatory to be answered.
But I have the intention of not really let the insert to the DB be done when none of the 3 questions are answered by the users. How can i make this happen in all the diferent implementations possible? In the end, i want to discard useless submissions.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 months ago #144467 by tpartner
You could place something like this in the "" Whole question validation equation " field for all questions:

Code:
!is_empty(B1) OR !is_empty(B2) OR !is_empty(B3)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: amendes
The topic has been locked.
  • amendes
  • amendes's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #144738 by amendes

tpartner wrote: You could place something like this in the "" Whole question validation equation " field for all questions:

Code:
!is_empty(B1) OR !is_empty(B2) OR !is_empty(B3)

missed in the manual reading. thanks for the insight.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose