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) {
    jQuery(data.into).find(‘form’).resetForm().clearForm();
    //wpcf7ResponseOutput.addClass(‘wpcf7-mail-sent-ok’);
    window.location = “http://mysite.com/thank-you/”;

    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.

    djones101

    (@djones101)

    Anyone get this hack to work?

    djones101

    (@djones101)

    Relish1227….

    Does this hack not play nicely with certain plugins?

    col235

    (@col235)

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

    http://www.grapethinking.com/wordpress-contact-form-7-plugin-landing-pag

    djones101

    (@djones101)

    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.

    Thanks

    tillisonm

    (@tillisonm)

    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.

    Mark
    http://tillison.co.uk

    djones101

    (@djones101)

    Mark,

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

    Thanks

    Dan

    djones101

    (@djones101)

    Tillisonm,

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

    I have these running:

    akismet
    all-in-one-seo-pack
    contact-form-7
    google-analyticator
    google-sitemap-generator
    tinymce-advanced
    wp-super-cache

    location.href=”http://www.xxx.com/thank-you-contact-form”;

    also does not work for me…

    djones101

    (@djones101)

    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 grapethinking.com. Sure wish it would!

    Hi,

    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?

    Thanks,

    Dan

    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(‘http://www.YOURSITE.com’);”

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