Support » Fixing WordPress » [Plugin: Contact Form 7] Thank You Page

Viewing 15 replies - 1 through 15 (of 43 total)
  • I am looking for the same thing….

    I found a way to make it work — in the contact-form-7.js file…

    line 90:
    if (1 == data.mailSent) {
    window.location = “”;

    Instead of having it add the thank you response output, I redirect it to my thank you page.

    Definitely a hack, but does what I need it to do.

    Anyone get this hack to work?


    Does this hack not play nicely with certain plugins?

    I found this on the author’s site. Haven’t tried it myself, but they said it works:

    No dice. I get the same response with grapethinkings hack as I do with relish1227’s hack. It ignores the site and goes directly ajax plug-in.

    If anyone gets it to work please let me know.


    Relish’s “hack” seems to work fine for me.
    I just upgraded to the latest version, if that makes any difference?

    Question though: does the .js get overwritten with the next upgrade. Apologies if that’s a noob question, I’m no coder!

    Thanks Relish.



    What plugins are you using with your site. I am trying to figure out if there is some conflict going on when redirected.




    What other plugins are you running…? I still can not get this hack to work

    I have these running:



    also does not work for me…

    I had two instances of jquery appearing. It was blocking me from changing anything in the .js file. By default it was going to the .php file.

    Thanks for the help everyone.

    Nope, can’t get it to work – not Relish’s version or from Sure wish it would!




    In the newest version of Contact Form 7 is there a way to do this? I am not the best with javascript, but it seems there should be a way to do it using “Additional Settings”. Anyones know how?



    I am also interested in this.

    I tried both ‘hacks’ and I did not manage to get it working. It keeps showing the AJAX message even if I get rid of the line.

    Any idea?

    Thanks a lot

    I tried cutting and pasting the hack code into the .js file at line 90 (which happened to be the bottom of the form), then uploaded it to my site. Nothing at all changed.

    I’m a novice so I probably shouldn’t be gambling in this area.

    I’d love to return the visitors to another page with a couple of PDF’s as a thank you after they submit their email.

    Can you please HELP?

    Much thanks!

    Put this in the Additional Settings field and it will redirect you to the page when the user clicks on the submit button.

    on_sent_ok: “location.replace(‘’);”

Viewing 15 replies - 1 through 15 (of 43 total)
  • The topic ‘[Plugin: Contact Form 7] Thank You Page’ is closed to new replies.