• Resolved digibuze

    (@digibuze)


    Hi everyone,

    I’m desperatly trying to redirect the user who submitted my “contact form 7” form on a Thank you page.
    The method everyone is suggesting just doesn’t work at all for me.
    I inserted in the additional settings field located at the bottom of the Contact page the following code:

    on_sent_ok: “location.replace(‘www.my-site.com);”

    Well nothing works ! I just got the validation message that I’ve specified above.

    Can anyone help me on this please ? Any other technique to redirect to a TY page ?

    It’s driving me nuts. Thank you for your help

    {Stop bumping!]

Viewing 6 replies - 1 through 6 (of 6 total)
  • It could be as simple as youve got the code wrong:

    on_sent_ok: “location.replace(‘https://www.mysite.com’);”

    you’re missing an inverted comma after the domain. maybe that’s all it is?

    apparently this also works but i’ve never had any trouble with the first method so try that first.

    on_sent_ok: “location = ‘https://www.mysite.com’;”

    if neither of those work check that you’ve got:

    <?php wp_footer(); ?>

    in your footer

    Thread Starter digibuze

    (@digibuze)

    Hi James and thank you for your answer.

    However it still doesn’t work when I insert
    on_sent_ok: “location = ‘https://www.mysite.com&#8217;;”
    that I’ve already tried before.

    I also confirm that
    <?php wp_footer(); ?>
    was present in my footer.

    Don’t you see any other solution please ?

    Ben

    Thread Starter digibuze

    (@digibuze)

    Anyone here please ?

    And you’ve definitely tried the first one with the typo corrected?

    If that doesn’t work I’m out of answers sadly. But I assume your plugin is up to date?

    Maybe try the tedious approach of deactivating all your other plugins and then testing again.

    Hope you get it sorted!

    Thread Starter digibuze

    (@digibuze)

    Hi James,

    unfortunately I have ! ??
    my plugin is version 3.3

    desperate thanks

    Thread Starter digibuze

    (@digibuze)

    I found it James at last !!!

    Not only, you need to have the <?php wp_footer(); ?> called in your footer but also make sure the <?php wp_head(); ?> is called in your header !

    And this, no one ever mentioned it on all the forums I’ve been looking for !

    Thanks anyway
    Ben

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Thank you page in Contact form 7’ is closed to new replies.