Documentation
IntroductionQuick StartInstallationConfiguration
Question TypesPages & NavigationDrag & DropLive Preview
Conditional LogicPage RoutingFinish Screens
Built-in ThemesCustom ThemingFonts & PatternsLogo & Branding
Viewing ResponsesExporting DataWebhooks
Stripe SetupFixed PricingDynamic Pricing
Custom SlugsEmbed OptionsPublish Checklist
Inviting Team MembersRoles & Permissions
Docker DeployEnvironment VariablesCaddy SetupUpgrading

Conditional Logic

Conditional logic controls which questions are visible based on what a respondent has already answered. Rules are evaluated in real-time as the respondent progresses through the form.

How it works

Every question has a visibility rule (visibleIf). When the rule evaluates to true, the question is shown. When it evaluates to false, the question is hidden and its value is cleared.

Rules are built in the visual Logic Builder — no code required.

Opening the logic builder

Click any question in the builder, then click the Logic tab in the question editor.

Building a rule

A rule consists of one or more conditions joined by AND or OR:

`` Show this question when: [Question A] equals "Professional" AND [Question B] is answered `

Operators

| Operator | Use for | |---|---| | equals | Exact match | | not equals | Anything except this value | | contains | Text includes this substring | | does not contain | Text doesn't include this substring | | is answered | Any non-empty value | | is not answered | Empty / unanswered | | greater than | Numeric comparison | | less than | Numeric comparison | | greater than or equal to | Numeric comparison | | less than or equal to` | Numeric comparison |

AND vs OR

  • AND — All conditions must be true for the question to show
  • OR — Any one condition being true shows the question
You can mix AND and OR in a single rule. Conditions are evaluated in order.

Adding multiple conditions

Click + Add condition in the Logic Builder to add another row. Click AND or OR between rows to change the operator.

Rule evaluation order

Rules evaluate top-to-bottom. The first matching rule applies. If no rule matches, the question follows its default visibility (shown by default unless a rule says otherwise).

Testing logic

Use the Live Preview to test rules without submitting. Answer the trigger question and watch the dependent question appear or hide in real time.

← PREVIOUSLive PreviewNEXT →Page Routing