Skip to content

Form field: set value

Plugin ID: eca_form_field_set_value

Available since: 1.0.0

Set or overwrite the submitted input value of a form field. This also works to set form field value when a form gets rebuilt, e.g. during an ajax request.

Fields

Field value — config key: field_value


This field supports tokens.

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

Interpret above value as YAML format — config key: use_yaml

Nested data can be set using YAML format, for example mykey: "My value". When using this format, this options 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

Strip tags — config key: strip_tags

Whether stripping all HTML and PHP tags or not.

Type: checkbox · Required: no · Default: true

Trim — config key: trim

Whether stripping all whitespaces at the beginning and end or not.

Type: checkbox · Required: no · Default: true

Filter XSS — config key: xss_filter

Additionally filters out possible cross-site scripting (XSS) text.

Type: checkbox · Required: no · Default: true