How To: Use Logic in Surveys

Logic within the Ripple surveys can be set at the survey, page or individual question level. You can even group multiple questions together on a panel and set logic for the entire set of questions. When setting logic on pages or questions you can control if the selected page/question should be visible to the participants based on answers to any other question.

All the logic statements can be created or edited on the Survey Logic tab at the top of the survey. These can also be managed under the “Logic” section of the properties panel when editing any component of the survey.

Adding Survey Logic

  1. Select the “Survey Logic” tab at the top of the Survey Creator
  2. Choose the “Add New” button
  3. In the “Define Conditions” section choose the survey question to base the logic off of
  4. In the “Define Actions” section select what to do when the defined conditions are met
  5. Choose the “Save and Return” button
  6. Remember to choose the “Save Survey” button on the Survey Designer tab

Define Conditions

  • Allows selecting which survey question to base the logic off of
  • Note that you can have multiple conditions strung together in either an “AND” or “OR” comparisons

Define Actions

  • Based on answers to the conditions question you can control various aspects of the survey
  • Page Visibility - allows entire pages to be hidden or displayed based on previous answers
  • Question Visibility - similar to page visibility, hidden questions can be displayed on demand
  • Enable or Disable a question based on previous answers
  • Mark a question as optional or required
  • Automatically complete the survey, returning the user to the defined redirect
  • Set a question’s value (populate an answer)
  • Copy question value
  • Skip to a certain question
  • Run a custom expression
  • Create a custom message upon completion

Example - Conditionally Displaying Questions

For this example we will ask participants their preferred method of contact and display the appropriate contact method fields depending on their answer.

  1. Create a new survey and add the following fields:
  1. First Name - Single Input tied to first name variable
  2. Last Name - Single Input tied to last name variable
  3. Birthday - Single Input Date tied to birthday variable
  4. Preferred Method of Contact - Radio Group
  5. Email - Single Input tied to Email Address variable
  6. Phone Number - Single Input tied to Phone(cell) variable
  1. Deselect the “Visible” toggle for both the Email and Phone questions
  2. On the Survey Logic tab choose to add a new logic statement
  3. Under Define Conditions select the Preferred Method question and the “Email” option
  4. Under Define Actions select the “Question visibility” option and choose the “Email” question
  5. Choose Save and Return
  6. Add a new logic statement and under the Define Conditions select the Preferred Method question. Use Multiple conditions with an “Or” comparison to display the Phone Number question if either the “Phone” or “Text” answer is selected

Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.