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_after_submission return an error back to the form

  1. Jive Software
    Member

    I am making an HTTP api request to a web service in the gform_after_submission hook... If the web services returns an error how would I return an error back to the validation from this hook?

    Posted 12 years ago on Tuesday November 6, 2012 | Permalink
  2. Jive Software
    Member

    It looks like maybe I shoujld be using the gform_pre_submission for this...

    Posted 12 years ago on Tuesday November 6, 2012 | Permalink
  3. Jive Software
    Member

    It seems like there is not a way to return an error at the gform_pre_submission hook either?
    Anyone?

    Posted 12 years ago on Friday November 9, 2012 | Permalink
  4. David Peralty

    I'm going to ping the developers about this for you. Please hold tight and I hope to have an answer for you soon.

    Posted 12 years ago on Friday November 9, 2012 | Permalink
  5. Jive Software
    Member

    thanks... I tried this
    $form["is_valid"] = false;
    return $form;

    But that did not seem to help...

    Posted 12 years ago on Friday November 9, 2012 | Permalink