For the complete documentation index, see llms.txt. This page is also available as Markdown.

Survey Logic

Survey logic lets you personalise the survey experience for each respondent, showing or hiding questions, skipping pages, and branching to different paths based on how someone answers.

Show and Hide Questions

The simplest form of logic is visibility. You can make any question show or hide in real time on the page based on answers to other questions on the same page or previous pages.

To set this up, click the Edit (Pencil) icon to the right of a question and configure the Visibility settings.

You can also use the Mandatory settings to make a question conditionally mandatory, so it is only required if it is shown. For example, make an email address field mandatory only if the respondent has indicated they want to be contacted by email.

A screenshot showing how logic and validation being used to show a question only if a condition is met.
An example of a logic and validation being used to show a question only if a condition is met.

Post Logic

Post logic runs after a respondent clicks Next at the end of a page. It can skip pages, jump to a specific page, show a message, or end the survey based on the respondent's answers.

Post logic is useful when you have a group of questions you want to show or skip together based on a previous answer. Rather than setting visibility on each individual question, put them all on a separate page and use post logic to show or skip that page.

A screenshot showing post logic being used to determine what action should be taken at the end of a page.
An example of a post logic being used to determine what action should be taken at the end of a page.

Logic conditions are processed from top to bottom. If a condition triggers a page jump or ends the survey, no further conditions on that page will run.

Note that post logic does not process until the respondent clicks Next, so it cannot be used to show or hide questions on the current page in real time. Use visibility settings for that instead.


Pre Logic

Pre logic runs before a page loads. It can be used to skip a page before the respondent even sees it. You can use either post logic or pre logic to achieve similar outcomes, there is no strict rule about which to use. Choose whichever feels most natural for the flow of your survey.

A screenshot showing how pre logic being used determine what action should be taken prior to a page load.
An example of a pre logic being used determine what action should be taken prior to a page load.

Advanced Logic

Logic conditions can be built using answers from anywhere in the survey. If your survey is deployed via a UbiQuity email, you can also use database fields and email interaction data such as whether the contact clicked a link in a previous mailout.

When building conditions, the condition tree gives you access to survey questions, database fields, events, and mailout data all in one place.

A screenshot of the advanced logic conditions that allow you to filter from other modules.
The advanced logic conditions that allow you to filter from other modules.

Last updated

Was this helpful?