OptionalclearClear the value (remove the key from the submission data) when the field is hidden. This is applied if the component itself or any parent is hidden, irrespective the mechanism that made it hidden.
Related: hidden, conditional.
OptionalconditionalOptionaleq?: string | number | booleanThe value that should be checked against the reference component value.
For array values (of the reference component), the array is checked if it contains the specified value.
Optionalshow?: booleanWhether the field should be shown (true) or hidden (false) when the condition
is met.
Optionalwhen?: stringThe reference component key. Its value will be retrieved and tested against eq.
Data for the select component, containing the available values.
This a Formio.js implementation detail handling the polymorphism through dataSrc.
For Open Forms, this is not relevant, but we comply with the upstream configuration.
If other data sources are used (through openForms.dataSrc), they result in data
and data.values being set by the backend.
The available options that the user can choose from. Either configured manually on
the component itself, or programmatically by the backend after resolving the
configured data source set in openForms.dataSrc.
OptionaldefaultThe default/initial value to populate the field with if no value is set yet.
OptionaldescriptionAdditional information for the form field, displayed unconditionally.
Optional ReadonlyerrorsResolved custom error messages, for the active locale. Set by the backend from
translatedErrors - should never be written to.
OptionalhiddenHide or show the form field. This only controls the visibility - whether
submission data is retained or not is controlled through clearOnHide.
Unique ID for a component in a form definition. Used to render HTML IDs.
OptionalisMarker for a form field that requests potentially (privacy) sensitive information.
Pruning of submission data will clear the data of components marked as sensitive data.
This is specific to Open Forms.
Unique key for the component in a larger form definition.
The value must comply with the (\w|\w[\w.\-]*\w) regex, meaning that periods/dots
are allowed unless they're start or end. The period character creates a nesting
level in the submission data.
The form field label text.
OptionalmultipleFlag that controls the multi-value mode of the field.
If multiple values are enabled, typically an array of values will be submitted for the field instead of a single item.
JsonLogic expression to extract
the available options. The result must be an array of [value, label] tuples.
Optionaltranslations?: {Identifying code for a table in the reference lists API. The items present in this table will be returned as options.
Identifier to resolve the service pointing to the reference lists API.
Optionaltranslations?: {OptionalregistrationConfiguration on how to process the value of the component in the registration plugin(s).
OptionalshowInclude the component and its value in the confirmation email data.
OptionalshowInclude the component and its value in the submission report PDF available for download by the end-user and often included in registration plugins.
OptionalshowInclude the component and its value in the submission data summary on the confirmation page or not.
OptionaltooltipExtra information or background for the form field. Displayed after interacting with the tooltip icon/control near the label.
OptionaltranslatedCustom, user-supplied validation error messages for each error message type supported by the validators used in the validation configuration.
Specified for each supported language - the backend reads this configuration and
writes it to errors.
Discriminator to determine the component type. Uniquely determines the shape of the component configuration options.
OptionalvalidateThe validation configuration of the component.
Optionalplugins?: string[]List of plugin identifiers for async backend validation. The value is considered valid as soon as one plugin considers the value valid.
This is an Open Forms-specific feature.
Optionalrequired?: booleanSet to true to require a non-empty value to be provided for the field.
Component shape/options for the select component.
Select allows users to check one or more options from a set of predefined options, depending on component configuration.
Remarks
The submission data value type depends on the value of
multiple- for single value components, it's a string matching thevaluethevalueproperty of the selected option. For multi-value fields, it's an array of strings that match the options values.