Skip to content

Form field: get default value

Plugin ID: eca_form_field_get_default_value

Available since: 2.0.0

Get the default value of a form field and store it as a token.

Fields

Name of token — config key: token_name

Provide the name of a token where the value should be stored. Please provide the token name only, without brackets.

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

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