Docs / Forms & Automation
Conditional logic
Show or hide fields, and branch the confirmation, based on earlier answers.
Conditional logic is a set of rules — "field X is equal to value Y" — combined with Match All or Match Any, that Craftor compiles into a real expression under the hood. The same rule-builder UI appears in two places: a field's own Conditional Logic tab (controls whether that field is shown at all) and a Confirmation's "Only Show If" (controls which confirmation message/redirect fires).
Showing or hiding a field
- 1Select the field that should appear conditionally, and open its Conditional Logic tab.
- 2Click Add Rule, choose the field to check (any earlier field in the form), an operator, and a value to compare against.
- 3Add more rules if needed, and set Match All (every rule must pass) or Match Any (at least one rule must pass) at the top.
- 4Leave the rule list empty to always show the field — that's the default for every new field.
Available operators
- is equal to / is not equal to
- is greater than / is greater than or equal to (numeric fields)
- is less than / is less than or equal to (numeric fields)
- contains / does not contain
- is empty / is not empty — no value needed for these two
A rule referencing a Checkboxes or Multi-Select field's value matches if any of the visitor's selected options equal the rule's value — the same "is equal to" or "contains" rule works whether the target field allows one answer or several.
Branching the confirmation
Add multiple entries to the "On Submit, Show" repeater (Confirmations, in the widget's Content tab) and give each one an "Only Show If" condition using the exact same rule builder. Craftor evaluates them top to bottom and uses the first match — so order matters: put every specific branch above a single catch-all entry with no rules, left at the bottom, to guarantee something always shows.
A common pattern: a lead-qualification form with a "Budget" field, one confirmation with "Budget is greater than or equal to 5000" → a Redirect to a booking page, and a plain catch-all Message confirmation below it for everyone else.
Conditional logic controls what the visitor sees and which fields are visible/required — it does not, by itself, decide who gets emailed or which automation runs. Workflow steps (Craftor → Workflows) have their own, separately-configured conditions using the same field/operator/value shape — see "Workflows & automations."