(Survey Logic) Chapter 4 – Jump (Branch) Rules
About jump rules (Also known as branch rules)
Jump rules are used to control the branching of the survey. When adding a jump rule to a question you also specify where the survey should jump to if the jump rule evaluates to true.
A question can have more than one jump rule, and a jump rule can be either a basic expression or a sophisticated one. When more than one jump rule is added to a question, SurveyToGo will evaluate all the jump rules one by one and the first jump rule that evaluates to true will be applied.
Jump rules can force the survey to take the following actions:
- Jump to a specific question anywhere in the survey
- Jump to a specific chapter anywhere in the survey
- Cancel the survey (stops the survey and deletes the answers)
- Filter out the survey (stops the survey but keeps the information collected up until the filter)
- Submit the survey
Adding jump rules
Adding jump rules is done by:
- Select the question you wish to add a validation rule for
- Switch to the “Rules” tab
- Click the “new” icon on the jump rules grid toolbar
- Write the rule expression
- Select the action you would like to take when the rule evaluates to true.
Sample jump rules
The following sections are sample snippets that will help you to perform the most common jump rules.
(1) Branch from Q1 to Q2,Q3 or Q4 based on a specified answer
[Q1]: “Which beer brand do you like most?” [Corona, Amstel, Becks]
[Q2]: “You chose Corona!” [empty]
[Q3]: “You chose Amstel!” [empty]
[Q4]: “You chose Becks!” [empty]
Branch from Q1 to the relevant question based on the answer to Q1.
Add the following jump rules to Q1:
[condition] Answer (CurrQues) == 1 [action] Go to Q2
[condition] Answer (CurrQues) == 2 [action] Go to Q3
[condition] Answer (CurrQues) == 3 [action] Go to Q4
Each jump rule is checked. The one that evaluates to TRUE will be the one applied and its action will be carried out.
Back to Table Of Contents
Visit us at: http://www.dooblo.net