Skip to content

Form Logic ​

Form logic changes fields and page visibility while someone is filling out the current form.

Use it when a form should react to answers without adding more workflow nodes, such as showing follow-up questions, making a field required only in certain cases, or computing a field from earlier answers.

Rules ​

Rules run from top to bottom. When multiple matching rules affect the same field or page, the later matching rule wins.

Rule types:

  • Conditional: Runs actions only when its conditions match.
  • Always Runs: Runs as the form changes. Use this for computed values and defaulting behavior that should stay live.

Each rule can have one or more actions.

Conditions ​

Conditions use nested AND/OR groups. A condition compares a form field to either:

  • a typed value entered in the rule
  • another compatible field in the same form

Supported condition fields:

  • Text Input
  • Rich Text
  • Select
  • Radio Select
  • Number Input
  • Checkbox
  • Date / Time

Not supported as condition fields:

  • File Upload
  • Team / User Selector
  • Signature
  • Task List
  • List
  • Columns
  • Section Header

Select fields support text-style comparisons when single-select. Multi-select fields support Is In, Is Not In, Is Empty, and Is Not Empty.

Operations ​

Text fields support:

  • Equals
  • Does Not Equal
  • Contains
  • Does Not Contain
  • Starts With
  • Ends With
  • Is Empty
  • Is Not Empty

Number, date, time, and datetime fields support:

  • Equals
  • Does Not Equal
  • Greater Than
  • Less Than
  • Greater Than Or Equal To
  • Less Than Or Equal To
  • Is Empty
  • Is Not Empty

Checkbox fields support:

  • Is True
  • Is False
  • Is Empty
  • Is Not Empty

Operations such as Is Empty, Is Not Empty, Is True, and Is False do not need a comparison value.

Actions ​

Actions target a field in the current form. Visibility actions can also target an entire page.

Available action types:

  • Visibility: Show or hide the target field or page.
  • Editability: Make the target field read only or editable.
  • Required: Make the target field required or optional.
  • Value: Set, compute, or clear the target field value.

Value actions can use:

  • Static Value: A typed value appropriate for the target field.
  • Formula: A Liquid expression that references current form field values.
  • Clear Value: Removes the target field value.

Formula values can reference form fields through the form logic field context. The formula editor exposes field mentions in the builder.

For example, a formula for a Total number field can multiply Quantity by Unit Price:

liquid
{{ fields.quantity.value | default: 0 | times: fields.unit_price.value | round: 2 }}

Form formulas support current field references and an approved filter subset. They do not support Liquid tags or workflow-only filters such as date_fmt. See Form Formulas for setup, examples, result types, and troubleshooting, and Filters for the supported list.

Hidden pages ​

Pages are visible by default. In the page settings, check Hidden to start a page hidden, then add a conditional Visibility action that shows it for matching answers. When the conditions stop matching, the page returns to its configured default. Page targets offer only Visibility actions.

Rules can override either default, and the later matching rule wins.

Hidden pages are removed from form navigation. Required fields, list minimums, task completion, and signatures on those pages do not block submission. Previously entered answers are retained and remain available to the workflow; supplied values must still pass their format and type checks. Showing the page again restores its configured requirements.

A hidden page's signature is also waived as a prerequisite for signatures on visible pages. Any signatures already recorded remain part of the execution evidence.

The execution viewer and form PDFs keep hidden pages and their retained answers, labeled Hidden at submission. This records the server-evaluated state at submission; it does not imply the page was never shown earlier. Existing submissions without visibility evidence are not labeled hidden.

Preview and validation ​

The logic editor includes a live preview so builders can test rules before saving. File uploads are disabled in the preview.

Nawfe validates logic against the current form schema. If a field is deleted or changed to an incompatible type, the logic editor reports the broken reference so the rule can be repaired.