Client Side Events
You can listen to submit events to handle the loading while the form is being submitted.
Submit Triggers
If you want custom event to submit the form, you can use the submitForm
global function.
It will try to select the best BButton in this BindForm.
The order of selection is:
- The last BButton with the
whenFormOK
attribute.
- Last BButton in the form.
You can also manually configure that by adding the data-submit
attribute to the select.