@osforms/react as the user fills out the form. Hidden fields are skipped in navigation and excluded from the submission payload.
Types
OnlyConditionalLogic is exported. Derive the other two types from it:
Usage in FormField
How the SDK evaluates conditions
Conditions are re-evaluated on every answer. The evaluation helpers are internal; useactions.visibleFields from useFormState to read the result.
Evaluation rules:
equals/not_equals: string comparison afterString(value)contains/not_contains: substring check on the stringified value. For checkboxes (an array of values) this checks the comma-joined list, so usecontainsrather thanequalsgreater_than/less_than: numeric comparison afterNumber()is_empty:undefined,null, or"". An empty checkbox array ([]) does not count as emptyis_not_empty: any other valuematch: 'all': every condition must be true (AND)match: 'any': at least one condition must be true (OR)
Accessing visible fields
When usinguseFormState directly, visibleFields reflects the current set of visible fields after applying all conditional logic:
visibleFields and are not included in the submission payload.
For full conditional logic documentation, see Core / Conditional Logic.