So what is the correct syntax to forward a submitted form to a thank you page? I’ve found half a dozen different ways and none of them seem to work both in IE and FF. Actually only one would work in FF and none in IE that I’ve been able to tell. But now that I’m trying them again none of them work in FF either. I think I’m going crazy.
The most trustworthy site for reference I would guess would be: http://contactform7.com/2010/03/27/redirecting-to-another-url-after-submissions/ and this it states to use:
on_sent_ok: “location = ‘http://example.com/’;”
looking through the forums after this solution didn’t work I found:
on_sent_ok: “location.href = ‘http://example.com’;”
The emails still get sent but the redirect does not. But when I put these on_sent_ok lines into the additional settings, the emails are sent but the feedback success message doesn’t show up anymore. Validation error messages do still show up though.
I’m using the latest version of the plugin (2.2.1) I have taken care to make sure the theme and the page include the wp_footer and have viewed the source on the page containing the form and see the /wp-content/plugins/contact-form-7/scripts.js?ver=2.2.1 file. I love this plugin, but have spent the better part of a full day trying to get this to work. Thought it was fixed once but then I checked the internet exploder and no dice. Any clarification or insights would be greatly appreciated. Thanks!
- The topic ‘[Plugin: Contact Form 7] Issues with ‘Redirecting to Another URL After Submission’’ is closed to new replies.