The Validation Hooks are special Event Hooks called after the submit or validation actions.
Available Validation Hooks
Triggered by Actions
|submit() > validate()||onSuccess||YES||YES|
|submit() > validate()||onError||YES||YES|
The Validation Hooks can return a Promise
onSubmit are handled differently:
If you define them in the Form or Field Class, they are Event Handlers.
If you define them in the Field Definition, they are Event Hooks.
If you define
onError in the Form or Field Class, they are Event Hooks.