Change order of calling of form onSuccess() and onSubmit()

4 years ago

bene
Member | 83
+
0
-

Hi,

I suggest move calling of method Form::onSubmit() before Form::onSuccess() or add new method “Form::beforeOnSuccess()”.

Reason of this suggest is that I need make some sophisticated validation or normalization of form data before calling of method Form::onSubmit().

I cannot find a use-case for actual implementation.

4 years ago

David Matějka
Moderator | 5936
+
0
-

you can use onValidate