All Collections
Feedback
Surveys
Creating Logic Rules for Surveys
Creating Logic Rules for Surveys
Simay avatar
Written by Simay
Updated over a week ago

Overview

Survey Logic empowers you to create more dynamic and tailored surveys by setting rules that determine which questions respondents will see based on their previous answers. In this article, we will walk you through the basics of Survey Logic and how to use it effectively.

Getting Started with Survey Logic

To begin using Survey Logic, follow these steps:

  1. Create a New Survey:

    • Start by creating a new survey. For this demonstration, we are creating a Net Promoter Score (NPS) survey.

  2. Access Logic Rules:

    • Once you've set up your survey, you'll find the Logic section. This is where you can define the logic for each question.

How Survey Logic Works

Survey Logic operates on a simple principle: the rules you set for a question will determine which action follows it. Here's how it works:

Rule Order

Rules for a question are processed in the order they appear. The top rule has the highest priority and is evaluated first. If no rules apply, the next question in line will be displayed.

Defining Rules

When defining a rule for a question, you'll specify a condition based on the answer to a previous question.

For example, you can set a rule to show a specific question only if the respondent's answer to the previous question is less than five.

Creating Rules

Let's create an example rule to understand the process better:

We will show a follow-up question for respondents who scored less than five on the initial question.

  1. Click on "+ Logic Rule" for the question you want to apply logic to.

  2. Define the condition: In this case, the condition is "If the answer to this question is less than five."

  3. Specify the action: Choose "Go to Question," which allows you to select the next question to display.

  4. Choose the follow-up question that you want to display for respondents who meet the condition.

You can also add multiple rules for a question, setting different conditions and actions based on various answers.

Editing and Prioritizing Rules

After defining your rules, you can easily edit them or change their priority:

  1. Click on the "Logic" section for the question.

  2. Review and edit existing rules or change their order of priority as needed.

Exploring Rule Conditions and Actions

  • Rule conditions: Specify when a rule applies.

  • Rule actions: Determine what happens based on the rule.

Conditions

  • For NPS-type questions, conditions include the below options:

Actions

  • Actions include "Go to question" (direct respondents to a specific question) and "Go to next question" (end the survey after this question).

  • Other actions include "End Survey," "Go to URL," "Trigger guide," "Trigger survey," "Launch checklists," and "Launch resource center."

  • "Run JavaScript" allows you to execute custom scripts after a question is answered.

Did this answer your question?