...
Provided that the field has a 'Number' label.
...
added onAfterSubmit to Buttons and SubmitLinks
...
The call order of onSubmit in Buttons vs Forms was inconsistent in 1.4, and fixed at "Button always comes first" in 1.5. Sometimes it is desirable to have the Button's onSubmit running after the Form's, however. In 6.0, IFormSubmitter.onSubmit
is gone and has been replaced by .onSubmitBeforeForm
and .onSubmitAfterForm
still fixed at "button first". In addition to that, there is now .onAfterSubmit
. Your submitting component can implement either one of them or even both. Both will be called after the validation and form model update, just like onSubmit before. The only difference is that you can now pick whether something should happen before or after Form.onSubmit
.
...