Skip to content

Form field: add state

Available since: 2.1.0

Add JavaScript state to a form field or element.

Fields

Selector

The JQuery selector for the remote element controlling the state of this field.
This field supports tokens.

State

The state of this field that should be controlled by the remote element.
When using the "Defined by token" option, make sure there is a token with this name: eca_form_field_add_state_state

Condition

The condition of the remote element controlling the state of this field.
When using the "Defined by token" option, make sure there is a token with this name: eca_form_field_add_state_condition

Value

The value for the condition. This is only required if "value" is selected as the condition.
This field supports tokens.

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.