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.

Disable redirect

  1. djbokka
    Member

    is it possible to completely disable the redirect/confirmation? We're sending form data to a third party (via gform_after_submission) and the third party handles the redirect.

    Posted 11 years ago on Tuesday May 29, 2012 | Permalink
  2. This should do the trick for you:

    add_filter("gform_confirmation", "custom_confirmation", 10, 4);
    function custom_confirmation($confirmation, $form, $lead, $ajax){
       return "";
    }
    Posted 11 years ago on Tuesday May 29, 2012 | Permalink
  3. djbokka
    Member

    Thanks. That's exactly where I went with it. Didn't work for me but could be because of something else. I'll confirm everything else first.

    Posted 11 years ago on Tuesday May 29, 2012 | Permalink
  4. djbokka
    Member

    Yep, that works. It was the other thing. Thanks.

    Posted 11 years ago on Tuesday May 29, 2012 | Permalink
  5. Right on, glad to help.

    Posted 11 years ago on Wednesday May 30, 2012 | Permalink

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