DocsForms
Conditional logic and multi-step forms
Show, hide, require or fill fields depending on the answers, split long forms into steps with progress, and run actions only when conditions match.
Field, step and group logic#
Select a field, step or group and add logic rules. Each rule does one thing when its condition matches:
- Show or hide
- Require or make optional
- Disable
- Set a value — which can include other answers, like
{field:first_name}
Conditions compare the form’s fields — “Service is Website design”, “Budget < 5000”, “Country is United States” — and can be combined with all or any, nested four levels deep.
What hidden means
- A hidden field’s value isn’t sent, and it’s never required.
- Fields in a hidden step or group are hidden too; a hidden step is skipped.
- A value that logic sets is decided on the server, whatever the browser sends.
Multi-step forms#
Add Form step elements (or let the form split what’s there into steps). Each step has a title, a description and Next / Back / Skip buttons. Show progress as numbered steps, a bar, a percentage, or both.
Conditional actions#
Actions can have conditions too — over the answers, the visitor and the page — with an otherwise branch:
If Lead type is Enterprise: Salesforce + Slack + the enterprise email
Otherwise: add to the newsletter listRelated articles
On the features pages
Still have a question? Email us at support.