Form: add submit button¶
Plugin ID: eca_form_add_submit_button
Available since: 1.0.0
Add a submit button with a type and a label to a form.
Fields¶
Trigger name— config key:name-
The trigger name must be a machine name and is used for being identified on form submission. Example: accept, send. It can later be accessed via token [current_form:triggered].
This field supports tokens.Type:
textfield· Required: yes · Default: empty string Button label— config key:value-
The label of the button shown to the user.
This field supports tokens.Type:
textfield· Required: yes · Default: empty string Button type— config key:button_type-
Here you can select the type of the button from the list.
When using the "Defined by token" option, make sure there is a token with this name: eca_form_add_submit_button_button_typeType:
select· Required: yes · Default:_noneAllowed values:
_none,primary,secondary,danger,_eca_token Element weight— config key:weight-
The lower the weight, the submit action appears before other submit actions having a higher weight.
Type:
number· Required: yes · Default:0