Form: add Ajax handler¶
Plugin ID: eca_form_add_ajax
Available since: 1.0.0
Enhances an existing form field element with an Ajax handler for refreshing parts of a form without refreshing the whole page.
Fields¶
Disable validation errors— config key:disable_validation_errors-
Enable this option to completely suppress validation errors.
Type:
checkbox· Required: no · Default:false Validate form fields— config key:validate_fields-
Machine names of form fields that should be validated. Define multiple values separated with commas. Example: first_name,last_name. When no fields are defined at all and validation is not disabled above, then the whole form will be validated.
This field supports tokens.Type:
textfield· Required: no · Default: empty string Target— config key:target-
The machine name of the form element target to refresh via Ajax. When empty, then the whole form will be refreshed.
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. When this form element got Ajax handling attached, using this element will automatically submit the form. Therefore, you can react upon that with regular form events like Build form, Submit form and when validation is enabled, also Validate form.
This field supports tokens.Type:
textfield· Required: yes · Default: empty string