Skip to content

Conditional Logic

Conditional logic lets a form react to respondent input.

What Conditional Logic Can Do

Rules can:

  • Show or hide fields
  • Enable or disable fields
  • Mark fields required or optional
  • Set values
  • Filter selectable options
  • Mirror values from another field
  • Apply validation effects

Open the Dependency Builder

  1. Open a form.
  2. Open the dependencies or conditional logic area.
  3. Create or select a rule.

Rule Structure

A rule has:

  • One or more predicates, also called conditions
  • One or more effects, also called actions
  • Logic for how conditions combine

Conditions can be grouped with AND/OR behavior.

Conditions

Conditions compare field values. Examples include:

  • Equals
  • Does not equal
  • Contains
  • Greater than
  • Less than
  • Between
  • Date before
  • Array contains
  • Email valid

Effects

Effects update the form state. Examples include:

  • Show field
  • Hide field
  • Set required
  • Set optional
  • Disable field
  • Enable field
  • Set value
  • Filter enum/options

Nested Fields

Rules support nested field paths such as fields inside repeating groups.

Validation

The dependency system validates rule structure and detects circular dependencies. If a rule cannot be saved or does not run as expected, check:

  • The source field exists
  • The target field exists
  • The predicate value matches the field type
  • Rules do not reference each other in a loop

Public Runtime

Published forms pass dependency data into the renderer. Respondents see the effects of conditional rules while completing the form.

KinoForms documentation