Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Adding branching logic to survey

Adding branching logic to survey 2 years 7 months ago #108346

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

Adding branching logic to survey 2 years 7 months ago #108350

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 7 months ago by Gophermuncher. Reason: edited for clarity
The administrator has disabled public write access.

Adding branching logic to survey 2 years 7 months ago #108355

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5443
  • Thank you received: 814
  • Karma: 240
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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu
Time to create page: 0.327 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form