DocsOFormsConditional Logic
Building Forms

Conditional Logic

OFormsorravo.com/docs/oforms/conditional-logic

Conditional Logic

Fields can be conditionally shown or hidden based on values of other fields.

Rule Structure

json{
  "action": "show",
  "match": "all",
  "rules": [
    { "field": "field_abc123", "operator": "is", "value": "Yes" },
    { "field": "field_xyz789", "operator": "is_not", "value": "" }
  ]
}

Action

ValueEffect
showField is hidden by default; shown when conditions match
hideField is visible by default; hidden when conditions match

Match

ValueLogic
allAll rules must match (AND)
anyAt least one rule must match (OR)

Operators

OperatorDescription
isField value equals
is_notField value does not equal
containsField value contains string
not_containsField value does not contain string
greater_thanNumeric: field value > comparison
less_thanNumeric: field value < comparison
is_emptyField has no value
is_not_emptyField has any value

Conditional logic is evaluated client-side in real-time and re-evaluated server-side on submission before saving the entry.

Conditional Logic — OForms Docs — Orravo