PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

gform_pre_submission question

  1. 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

    Posted 12 years ago on Monday November 7, 2011 | Permalink
  2. How about using the gform_validation filter instead? It would allow you to continue on success, or would allow you to show some errors if your check fails.

    Posted 12 years ago on Tuesday November 8, 2011 | Permalink
  3. Excellent, thanks.

    Posted 12 years ago on Wednesday November 9, 2011 | Permalink
  4. Great. Thanks for the update.

    Posted 12 years ago on Wednesday November 9, 2011 | Permalink

This topic has been resolved and has been closed to new replies.