Send users to a “thank you” page – contact form 7
-
Hi
I am using contact form 7 plugin and I want to send users who fill out the form to a thank you page.
How can I do that?
-
@mindblender 3D
I apologize for my short response above. About 12-18 months ago there was a lot of back and fourth on this topic on his plugin page and these forums. At the time I posted that post above… I was amazed that @takayukister was still taking the same stance.
It’s frustrating that @takayukister provides a work around to achieve forwarding to another page and then 3-6 months later changes that work around. This breaks the various types of forms that I use on 40-50 websites for my customers. It then takes a large amount of my time to go fix each of these forms.
I would gladly donate to have this included in the plugin, as I have donated before… I enjoy using your plugin because I can easily use css to change it’s appearance and it’s an easy interface for my clients. While every client has a contact form on their page… almost every client uses your plugin for something other than a contact form as well.
An example… A few sites I have created need their customers to fill out multiple forms to send to different departments in their company. I link each form to the next form.
A simple box that you can click for forwarding and enter a link would be greatly beneficial.
Put this line in the "Additional Settings" field, at the bottom of each form: on_sent_ok: "location.replace('https://www.MyDomain.com/thank-you/');" And make sure your <?php wp_footer(); ?> tag is installed in your theme's footer file.
That is no longer working in the newest version…
I have written a post.
Redirecting to Another URL After Submissions
I don’t recommend using it.
Really.
That would be nice… but with the upgrades that no longer works.
For your information.
In additional settings…
on_sent_ok: “location = ‘https://example.com/new-page’;”
This in the footer.php file
<?php wp_footer(); ?>
Does not work with WordPress 3.0-beta1 and version 2.2 of your plugin.
For you information @takayukister On the 50 or so sites that I have your plugin… only a handful are using it only for a contact forms. Most use it for something much larger.
djones101, you should read them carefully and show your site’s URL. Contact Form 7 2.2 is compatible up to 2.9.2, and it is a contact form plugin.
on_sent_ok: "location = 'https://example.com/new-page';"
and
<?php wp_footer(); ?>
Works in 2.9.2, fyi. If you all already knew that then disregard my post.
Ok I understand the theory and practice of the goals and Analytical tracking.
I have used your form about a dozen times and thing it is awesome.
But in terms of marketing special products or discounts on products. If you created a thank you page that then showcased some specials on your e-commerce store.
Or is their another reason why Thankyou pages aren’t hip anymore.
The same argument could be made for completing an online transaction.
My post is not to “question” your code or design practices (In my mind takayukister you are a freaking amazing coder)
but more wonder why thank you pages aren’t useful.
I apologize for my short response above. About 12-18 months ago there was a lot of back and fourth on this topic on his plugin page and these forums. At the time I posted that post above… I was amazed that @takayukister was still taking the same stance.
That’s quite alright, I understand about things of that nature. Really, I’m just trying to do my part to keep the WP Forums a fair, balanced, useful, thoughtful, helpful place. I appreciate your ongoing effort to seek to improve this plugin, and I hope a permanent solution can be reached.
Thanks,
MindBlender 3DHaving read all the above and followed all the advice….I still can’t get it to redirect to another page.
wp 2.9.2
Contact Form 2.2What I don’t get is why not just add this functionality. It is obviously needed… I know I do… even as a contact form. Please!?!? Why not make a good plug-in even better? Do I really need to search for other alternatives? It is just a simple redirect.
I couldn’t agree more.
We’re with zimaron. Please add this functionality! We will up our donation for sure.
We have spent many hours trying to get past this problem on our corporate site and are about to switch to a WordPress form plug-in other than Contact 7.
IMHO, the lack of a Thank You is just too large a gap in functionality for 90 percent of form users who want to track submission easily, especially those who want to use something OTHER than Google Analytics.
Sigh. I find it hard to believe that the obviously talented and very gifted developer of Contact 7 is deliberately trying to unilaterally change the way the world uses contact forms. Maybe that is not his intent.
Having spent more than 20 years working with user interfaces I have to say I don;t think the way that Contact 7 normally handles the input response is an improvement over a Thank You page, regardless of the tracking issue. On our B2B site we get people submitting the form multiple times BECAUSE they expected a Thank You page response and did not get one.
Like Patricklondon, wWe have tried the workaround but without any success so far. We are days away from dropping this plug-in.
Sigh!
Scobb99, zimaron, patricklondon
The functionality your are looking for already works.
Under -> Additional Settings of your contact form
Insert this code.
on_sent_ok: "location = 'https://examplepage.com/?page_id=33';"
You can insert any page id you want of course.
I set this up and had it working in about 5 mins on both forms I have running on my wordpress2.9.2 site.
Sorry Kelton, maybe I didn’t make this clear in my post: we’ve been trying to get this to work, exactly as you and others here have described, but as of now it is not working. We have the right code string in the footer file and in the C7 Additional Settings field but the form does not take the user anywhere.
From reading this page for the third time, it seems we are not the only ones having this problem. Further, and I think this is the point about “Thank You page as a feature” — If the developer doesn’t think it is a good idea in the first place, then it is unlikely to get supported, beyond a “workaround” that does not seem to work for some people.
It is clear that takayukister is an awesome programmer and in many ways it is amazing to me that code as cool as Contact 7 is available at no charge, but it is hard to think of a commercial site that doesn’t want and need a Thank You page to track metrics (e.g. we are installing a very powerful PPC optimization tool called ClickEquations that works great when there is a Thank You page. No Thank You page means a complex workaround and inflexibility at best.
Regardless, I thank you for responding and letting everyone know what is working for you. It means we may yet be able to figure out how to get it working for us and avoid replacing takayukister’s plugin which, in all other respects is the best WordPress form plugin we have found.
- The topic ‘Send users to a “thank you” page – contact form 7’ is closed to new replies.