Form field: add state¶
Plugin ID: eca_form_field_add_state
Available since: 2.1.0
Add JavaScript state to a form field or element.
Fields¶
Selector— config key:selector-
The JQuery selector for the remote element controlling the state of this field.
This field supports tokens.Type:
textfield· Required: no · Default: empty string State— config key: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_stateType:
select· Required: yes · Default: empty stringAllowed values:
enabled,disabled,required,optional,visible,invisible,checked,unchecked,expanded,collapsed,_eca_token Condition— config key: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_conditionType:
select· Required: yes · Default: empty stringAllowed values:
empty,filled,checked,unchecked,expanded,collapsed,value,!value,_eca_token Value— config key:value-
The value for the condition. This is only required if "value" or "NOT value" is selected as the condition.
This field supports tokens.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