Array condition option in LimeSurvey

More
9 months 2 weeks ago #149385 by ymca
ymca created the topic: Array condition option in LimeSurvey
Is there an array condition option in LimeSurvey?

for example:
if user answer "x" in the array then the next question show "y" question instead of hiding "y" question.

Please Log in to join the conversation.

More
9 months 1 week ago #149419 by DenisChenu
DenisChenu replied the topic: Array condition option in LimeSurvey
Really unclear ....

QCODE_SQ001_SQ001.NAOK=="x" ?

But please explain ...... in detail ....

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 .

Please Log in to join the conversation.

More
9 months 1 week ago - 9 months 1 week ago #149551 by ymca
ymca replied the topic: Array condition option in LimeSurvey
Sorry.

I know there is a condition option (I guess it's called "Skip Logic") that depending on the answer the user choose, he will get the next coresponding question.

Does it also work the same on array options?
For example:

Let say there are 15 questions in the survey.
First question is an array.
If the user answer "Deannan Troi = 6" it will get the next question (question 2 in the survey) in the survey,
if the user answer "Deannan Troi = 3" then he will get question 3 in the survey.

And if the user answer "Deannan Troi = 1" he will get to the end of the survey.
Last Edit: 9 months 1 week ago by ymca.

Please Log in to join the conversation.

More
9 months 1 week ago #149553 by holch
holch replied the topic: Array condition option in LimeSurvey
You can use conditions or Expression Manager for this. I recommend to use Expression Manager and relevance equations, because you are more flexible and once you know how it works it is also a lot faster.

Assuming "Deannan Troi" has the answer code 1 and the question is called "Q1", then a relevance equation like this should work for your question two (that should only show when Deannan Troi is 6:
Q1_1 == 6
Not tested! Just an example.

The Deannan Troi = 1 --> End of survey is a little bit more complicated. If there are no further questions, only question 2 and 3, then it is easy and you can just use the relevance equations. if there are many other questions it is probably better to use a zero quota which would "screen out" respondents that answer 1 for Deannan Troi.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: DenisChenu, ymca

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!