Skip to content

Form field: set options

Plugin ID: eca_form_field_set_options

Available since: 1.0.0

Defines available options on an existing multi-value selection, radio or checkbox field.

Fields

Options — config key: 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]"
This field supports tokens.

Type: textarea · Required: no · Default: empty string

Interpret above value as YAML format — config key: use_yaml

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

Type: checkbox · Required: no · Default: false

Validate YAML to prevent this from being executed when invalid — config key: validate_yaml

Type: checkbox · Required: no · Default: false

Field name — config key: field_name

The input name of the form field. This is mostly found in the "name" attribute of an <input> form element. For submit buttons within content forms: Use "submit" for the labeled "Save" button, and "preview" for the labeled "Preview" button.
This field supports tokens.

Type: textfield · Required: yes · Default: empty string