Conditional fields

Show a field, or a whole step, only when a visitor’s earlier answers match conditions you set, and what happens to the answers in fields that end up hidden.

Conditional logic lets a form adapt to the visitor. You can attach conditions to a single field, from its settings panel, or to a whole step, from the step’s ⋮ menu. The field or step is shown only while every one of its conditions is true.

Both are set in the form builder. Open Marketing → Forms and click View on the form you want to change.

Make a field conditional

  1. On the canvas, click the pencil at the top right of the field you want to show or hide. Its settings panel opens on the right.
  2. Scroll down to the Show this field conditionally card (“Show this field only when specific conditions are met”) and switch it on. Zoie adds an empty first condition, #1 Condition.
  3. In If, choose the field whose answer decides whether this one appears. Each option shows the step name and the field label, for example Step 1 | Title.
  4. In Condition, choose an operator. It starts on is. See Operators.
  5. In Value, set the answer to compare against.
  6. Click Save at the bottom of the panel. Zoie confirms with “Field updated successfully!”
  7. Click Save Changes in the toolbar to store the form.

The If list offers every other field on the same step and on earlier steps. If there are none, the card shows “No fields available. Add other fields first.”

Discard changes at the bottom of the panel closes it without saving the conditions you set.

Choosing the value

What the Value box looks like depends on the field chosen in If:

Field in IfValue box
Dropdown or Radio ButtonsA Select value list of that field’s options.
Any other typeA text box, Enter value, where you type the answer to match.

The starter Service dropdown loads its choices from your business’s services when the form opens, so it has no options to pick from here. Check boxes don’t get a list either, and conditions on them don’t reliably match what the visitor ticked. For a question that controls other fields, use Radio Buttons or a Dropdown with its own options.

Operators

OperatorThe condition is true when the answer…
isExactly matches the value, including capital letters.
is notIs anything other than the value. A blank answer counts, so the field shows before the visitor has answered.
containsIncludes the value anywhere. Capitals are ignored.
does not containDoesn’t include the value. Capitals are ignored, and a blank answer counts.

Multiple conditions

Click Add Condition under the last condition to add another. Each one has its own If, Condition and Value, and a bin icon to remove it.

As soon as there are two or more, the card reminds you: “All conditions must be true”. There is no “any of” option. The field appears only when every condition matches.

Zoie checks your conditions when you click Save:

  • “Please add at least one condition or disable conditional visibility” means the switch is on but every condition has been removed.
  • “Please complete all conditions or remove them” means a condition is missing its field or its value.

Switching Show this field conditionally off removes all of the field’s conditions.

Make a step conditional

A whole step can be skipped too. This works for the second step onwards. The first step is always shown.

  1. In the steps bar above the canvas, click the step to select it.
  2. Click the ⋮ next to its name and choose Conditional Step.
  3. In the dialog, titled for example Show “Step 2” conditionally, switch the toggle on. The dialog explains “Show this step only when conditions are met” and adds a first condition.
  4. In If (Select field from previous steps), choose a field. Only fields on earlier steps are offered. If there are none, you will see “No fields available from previous steps. Add fields to earlier steps first.”
  5. Set Condition and Value exactly as for a field. Use Add Condition for more and Delete to remove one. With two or more, the dialog notes “All conditions must be met (AND logic). Step will show only when all conditions are true.”
  6. Click Save. Zoie confirms “Conditional step configured successfully!”
  7. Click Save Changes in the toolbar.

How conditions show in the builder

  • A conditional field has a ↳ arrow before its label and a purple badge with the number of conditions.
  • A conditional step has the same arrow and badge on its tab in the steps bar. Hovering the tab shows, for example, Conditional: 2 condition(s).

The canvas always shows every field so you can keep editing. To try the logic, click ▷ Preview (see Preview) and answer the questions as a visitor would. The step counter at the top of the preview counts only the steps that currently apply.

What visitors see

The shareable link and the embedded form behave the same way. See Embedding forms.

  • Conditions are checked again every time the visitor types or picks an answer, so a conditional field appears or disappears straight away.
  • Next → and ← Previous skip any step whose conditions aren’t met.
  • On a form with more than one step, the progress bar and the Step 1 of 2 label count only the steps that currently apply.
  • If no later step applies, the visitor sees Submit instead of Next →.

What happens to hidden fields’ values

A hidden field is never required. A required field only has to be filled in while it is shown. A hidden one doesn’t block Next → or Submit, and Zoie’s server also skips the required check for conditional fields and for fields on conditional steps.

Hiding a field doesn’t clear it. If a visitor fills in a field and then changes an earlier answer so that the field hides again, what they typed is still sent with the submission and saved to the lead. The same goes for a step that was filled in and then skipped. Partial captures from Abandoned form settings include those answers too.

Fields that stayed hidden send nothing. If the visitor never saw a field, it is simply empty on the lead.

A hidden field also keeps counting for any other condition that uses it.

  • Form fields covers adding, moving and removing fields.
  • Steps covers the steps bar above the canvas.
  • Creating a form covers saving, previewing and publishing.