Home > Survey Logic > (Survey Logic) Chapter 4 – Jump (Branch) Rules

## (Survey Logic) Chapter 4 – Jump (Branch) Rules

Back to Chapter 3 – Validation 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:

3. Cancel the survey (stops the survey and deletes the answers)
4. Filter out the survey (stops the survey but keeps the information collected up until the filter)
5. Submit the survey

Adding jump rules is done by:

1. Select the question you wish to add a validation rule for
2. Switch to the “Rules” tab
3. Click the “new” icon on the jump rules grid toolbar
4. Write the rule expression
5. 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

Survey Snippet

[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]

Requirement

Branch from Q1 to the relevant question based on the answer to Q1.

Solution

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

Explanation

Each jump rule is checked. The one that evaluates to TRUE will be the one applied and its action will be carried out.

Go To Chapter 5 – Built-In Functions