OK. You have two ways to implement this:
I recommend the former.
Hi Sandford,
How would you delay the form submission and wait for the Ajax call to success before actually submitting the form exactly ?
Thanks !
How would you delay the form submission and wait for the Ajax call to success before actually submitting the form exactly ?
Thanks !
Set form.submittable(false) in onValidate.
Then when you get the callback from your Ajax request, set form.submittable(true) and then form.submit().