Conditional Logic
Conditional logic lets you change the behaviour of a form dynamically based on what the end user enters. You can show or hide fields, enable or disable them, change whether they are required, and control which step comes next in a multi-step form.
How It Works
Each conditional rule consists of:
- One or more conditions — each condition compares a field's value against a fixed value using an operator.
- A match mode — whether all conditions must be true (AND) or any condition must be true (OR).
- An action — what happens when the conditions are met.
Conditions
Each condition targets a specific field in the form and evaluates its current value. The available operators are:
| Operator | Meaning |
|---|---|
equals |
The field value is exactly equal to the target value |
not equals |
The field value is not equal to the target value |
greater than |
The field value is greater than the target value |
greater than or equal |
The field value is greater than or equal to the target value |
less than |
The field value is less than the target value |
less than or equal |
The field value is less than or equal to the target value |
includes |
The field value contains the target value (useful for checkbox fields) |
not includes |
The field value does not contain the target value |
Actions
When the conditions are met, one of the following actions is applied:
| Action | Description |
|---|---|
| Show field | Makes a hidden field visible |
| Hide field | Hides a field from the end user |
| Enable field | Makes a disabled field interactive |
| Disable field | Prevents the end user from interacting with a field |
| Make field required | Marks a field as required dynamically |
| Make field optional | Removes the required constraint from a field |
| Go to step | Navigates to a specific step instead of the next one in sequence |
Example: Show a Field Based on a Selection
A common pattern is to show an additional text field when the end user selects a specific option in a dropdown:
- Add a Select field with an option such as Other.
- Add a TextField below it, and set its default state to hidden.
- Add a conditional rule: if the Select field equals
Other, then show the TextField.
The text field will remain hidden unless the end user picks Other.
Example: Branch to a Different Step
In a multi-step form, you can send end users down different paths:
- Add a Radio button field asking, for example, whether the user is a private person or a company.
- Add a conditional rule: if the field equals
Company, then go to step — select the step with company-specific questions.
When the condition is not met, the form continues to the next step in the default order.