Skip to content
English
  • There are no suggestions because the search field is empty.

Using Logic in Surveys

Logic within Ripple surveys can be applied at the survey, page, or individual question level. You can also group multiple questions into a panel and set logic for the entire group. When configuring logic for pages or questions, you can determine whether a specific page or question should be visible to participants based on their responses to other questions.

All logic statements can be created or modified in the Survey Logic tab at the top of the survey. Additionally, they can be managed under the Logic section in the properties panel while editing any survey component.

Adding Survey Logic in Ripple Surveys

To add survey logic, follow these steps:

  1. Navigate to the Survey Logic Tab

    • Click on the Survey Logic tab at the top of the Survey Creator.
  2. Add a New Logic Rule

    • Select the "Add New" button.
  3. Define Conditions

    • Choose the survey question that will serve as the basis for the logic.
    • Multiple conditions can be combined using "AND" or "OR" comparisons.
  4. Define Actions

    • Specify what should happen when the defined conditions are met. Options include:
      • Page Visibility – Hide or display entire pages based on responses.
      • Question Visibility – Show or hide specific questions dynamically.
      • Enable/Disable Questions – Activate or deactivate questions based on prior answers.
      • Required/Optional Questions – Change whether a question is mandatory.
      • Survey Completion Redirect – Automatically complete the survey and send users to a designated URL.
      • Set a Question’s Value – Auto-populate a response field.
      • Copy Question Value – Duplicate an answer from another question.
      • Skip Logic – Jump to a specific question based on responses.
      • Run a Custom Expression – Execute a predefined custom logic.
      • Display a Custom Message – Show a tailored message upon completion.
  5. Save Changes

    • Click "Save and Return" to apply the logic.
    • Navigate to the Survey Designer tab and select "Save Survey" to finalize all changes.

Example: Conditionally Displaying Questions

In this example, we will ask participants for their preferred method of contact and display the corresponding contact method fields based on their response.

Step 1: Create a New Survey and Add Fields

  1. Add the following fields to the survey:

    • First Name – Single Input (tied to the First Name variable)

    • Last Name – Single Input (tied to the Last Name variable)

    • Birthday – Single Input (Date) (tied to the Birthday variable)

    • Preferred Method of Contact – Radio Group with options (e.g., Email, Phone, Text)

    • Email – Single Input (tied to the Email Address variable)

    • Phone Number – Single Input (tied to the Phone (Cell) variable)

  2. Set Default Visibility

    • Deselect the “Visible” toggle for both the Email and Phone Number questions to hide them initially.

Step 2: Define Survey Logic for Email Visibility

  1. Navigate to the Survey Logic tab and select “Add New” to create a new logic statement.
  2. Define Conditions
    • Select the Preferred Method of Contact question.
    • Choose the "Email" option as the condition.
  3. Define Actions
    • Choose “Question Visibility” as the action.
    • Select the Email question to make it visible when "Email" is selected.
  4. Save
    • Click “Save and Return” to apply the changes.

Step 3: Define Survey Logic for Phone Number Visibility

  1. Add a new logic statement in the Survey Logic tab.
  2. Define Conditions
    • Select the Preferred Method of Contact question.
    • Use multiple conditions with an "OR" comparison to check if either "Phone" or "Text" is selected.
  3. Define Actions
    • Choose “Question Visibility” as the action.
    • Select the Phone Number question to make it visible when "Phone" or "Text" is selected.
  4. Save
    • Click “Save and Return” to apply the changes.

Now, when participants select their preferred contact method, the appropriate field (Email or Phone Number) will be displayed dynamically based on their choice.