Skip to content

Form: add options field

Add a field with options as radios, checkboxes or select dropdown to the current form in scope.

Fields

Field type

List of the available types of the field to be added.

Field name

The field name is a machine name and is used for being identified on form submission. Example: first_name. It can later be accessed via token [current-form:values:first_name].

Field title

The title of the field to be added.

Field description

The description of the field to be added.

Field is required

Whether the added field is required or not.

Default value

The default value if the field is empty.

Element weight

The lower the weight, the submit action appears before other submit actions having a higher weight.

Options

Can be a comma-separated sequence of key-value pairs (e.g. k1:v1,k2:v2 or a token that holds a list of key-value pairs. Alternatively use YAML syntax to define one key-value pair per line. Example: key1: "value1". When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: title: "[node:title]"

Interpret above value as YAML format

When using YAML format to define the options above, this option needs to be enabled.

Allow multiple values

Whether the user can select more than one value in the option field.


Last update: January 28, 2023 13:50:53