Skip to main content

Form Logic

Form logic changes fields 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, 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.

Available action types:

  • Visibility: Show or hide the target field.
  • 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.

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.