Interface OFConditionalOptions

Replacement of Formio's ConditionalOptions, changes are:

  • we don't support json
  • eq can be any JSON-serializable type, not just string. Note that our builder uses appropriate JS types for the component type referenced via when.`

Hierarchy

  • OFConditionalOptions

Properties

Properties

eq?: string | number | boolean

The value that should be checked against the comparison component.

For array values, the array is checked if it contains the specified value.

Note

Only (a subset of) primitives are supported.

show?: boolean

If the field should show if the condition is true

when?: string

The field API key that it should compare its value against to determine if the condition is triggered.

Generated using TypeDoc