Hi
After a user hits the submit button I need to do a check whereby there are two results:
1. Fail and then stay on the same page.
2. Success and go to the success page.
I have the function in place using gform_pre_submission but I have initially used die() to represent the fail state. This of course isn't good enough as the spinner keeps whirring, and multiple fails lead to multiple spinners.
Can you advise please on how best to use gform_pre_submission to create a nice error message and stay on the same page?
Many thanks