Conditions on sub-questions of a question???

More
4 years 2 months ago #94207 by marierioux
marierioux created the topic: Conditions on sub-questions of a question???
Good afternoon,
I would like to know if it is possible to set conditions on/for subquestions of a question? How to? I am using limesurvey Version 2.00+ Build 130305.

Thanks

Please Log in to join the conversation.

More
4 years 2 months ago #94225 by DenisChenu
DenisChenu replied the topic: Conditions on sub-questions of a question???
Hello,

Not reaaly included. The only condition is the array_filter and array_filter exclusion.

You can use too some Expression[1] in Sub-question validation equation [2]
For example, something like this:
if(Q1==Y,MUL_SQ001=="","")
force to answer SQ001 if Q1 answer is Y (not tested: if it work you can write here)

Denis
1 : docs.limesurvey.org/Expression+Manager
2 : docs.limesurvey.org/Question+type+-+Mult..._validation_equation

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: marierioux

Please Log in to join the conversation.

More
4 years 2 months ago #94250 by marierioux
marierioux replied the topic: Conditions on sub-questions of a question???
IT WORKED!!!
I used {if(QuestionX == "Y" or QuestionX == "Z", "your answer","")}
The last 2 "" at the end are used because if the 2 conditions are not met, I don't want to have anything written (but you can also write something)...

Thanks again

Please Log in to join the conversation.

More
3 years 11 months ago - 3 years 11 months ago #98270 by first
first replied the topic: Conditions on sub-questions of a question???
Although I have started a new thread

www.limesurvey.org/en/forum/can-i-do-thi...-input-type-question

but I am trying to to modify the equation that is being discussed here .. no success so for:(.

Survey Designer and Programmer
Last Edit: 3 years 11 months ago by first.

Please Log in to join the conversation.

More
3 years 11 months ago #98279 by first
first replied the topic: Conditions on sub-questions of a question???
((q1_1 != "Y") || (q1_2 != "Y"))

Survey Designer and Programmer

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now