@osforms/react as the user fills out the form. Hidden fields are skipped in navigation and excluded from the submission payload.
Types
Usage in FormField
How the SDK evaluates conditions
The@osforms/react SDK evaluates conditions in real time using the isFieldVisible utility:
equals/not_equals— strict string comparison after coercion (String(value))contains/not_contains— substring check on stringified valuegreater_than/less_than— numeric comparison afterNumber()coercionis_empty—undefined,null, or empty stringis_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.