Adding branching logic to survey

More
2 years 10 months ago #108346 by markehuber
Hi, I am creating a survey and would like to add branching logic. Within LimeSurvey I have created 12 groups of questions. Based on how the questions are answered, I would like to be able to skip over several groups of questions. Is this possible using LimeSurvey?

Please Log in to join the conversation.

More
2 years 10 months ago - 2 years 10 months ago #108350 by Gophermuncher
I don't know javascript so the way I did it was this:

If you can, replicate the logic using the conditions option for an individual question. Save it. Then copy everything in the Relevance equation portion for that question and then paste it into the actual question group.
Last Edit: 2 years 10 months ago by Gophermuncher. Reason: edited for clarity

Please Log in to join the conversation.

More
2 years 10 months ago #108355 by holch
You can use either Expression Manager or conditions.

Expression Manager needs some basic coding, but once you got it, it is really quick.

So if you want to show another question only if in a previous question the code 2 was marked it would be something like this:
Q1==2
With Q1 being the question code of the question you want to base the filter on.

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

Please Log in to join the conversation.