WordPress.org

Ready to get started?Download WordPress

Forums

Send users to a "thank you" page - contact form 7 (41 posts)

  1. ezgold
    Member
    Posted 4 years ago #

    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?

  2. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    Contact Form 7 doesn't support "thank you page" feature. Could you explain why you need that?

  3. djones101
    Member
    Posted 4 years ago #

    takayukister

    What is your issue with a Thank You page? Did you ever think that people use the plugin for something other than just to contact people? I enjoy your plugin and have donated to your pay-pal account, but this is ridiculous that you are so against this.

    Example why to have a forwarding page... How about filling out a consent form to purchase time from a personal trainer? What if you have a series of 5 forms that need to be emailed to 5 different people? These are 2 ways I have used your plugin.

  4. WP Voyager
    Member
    Posted 4 years ago #

    @djones101: As it has been noted by people in this forum and elsewhere before, plain text is a very hard way to communicate. Without a full command of human emotional overtones and knowledge of the context of communication, it is often very hard to tell what a person is truly saying. Because of this, I think it is a little hasty to come off at the plugin author because of one short sentence. I can see where you are coming from, don't get me wrong! But my point is that his saying,

    Could you explain why you need that?

    doesn't have to mean that he is against the idea.

    Chances are, that he was a little short on time, maybe pressed by a deadline or something, and he was generous enough with his time to look at the support forum to help people. As a result of this lack of time (or for the sake of speed), he gave a reply that might be a little short, easy to read the wrong way. Read a little differently, he could be acknowledging a limitation with his plugin, and then asking the OP for a good reason to add it.

    Or, on the other hand, I could be completely wrong; maybe he is against the feature! But needless to say, it is best to give the person the benefit of the doubt, and post politely in hopes of getting an informative reply.

    Having said all this, I do agree with your idea, a forwarding page does seem to be most useful.
    @takayukister: I am in favor of adding forwarding support. I think it would be a good addition to a great plugin.

    I hope all involved parties understand my post and reasons for posting, I wish the best for all involved :-)

    Thanks all!
    MindBlender 3D

  5. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    OK. I guess I should write about this topic and my thought in detail somewhere. It seems that my last comment was lack of talk and caused misunderstanding. It was mainly due to my poor English writing skills. I must study hard :)

    Basically, I think the "Thank you page" is an outdated custom and in 99% cases you should instead use better, simpler and more elegant way that Contact Form 7 supports by default. I'm not against it. I just say I can't recommend it. Because I can't recommend it, I don't add "Thank you page" support into Contact Form 7.

    However, there may be cases you have to implement "Thank you page" for some inevitable reasons. For such cases, you can do it by installing custom add-on module doing simple redirection after submission. It's really easy and simple. I'll write a post about this in my blog so that you'll be able to copy & paste it.

  6. sancho320
    Member
    Posted 4 years ago #

    Put this line in the "Additional Settings" field, at the bottom of each form:

    on_sent_ok: "location.replace('http://www.MyDomain.com/thank-you/');"

    And make sure your <?php wp_footer(); ?> tag is installed in your theme's footer file.

    Source: http://wordpress.org/support/topic/255321/page/2

  7. AnthonyOwen
    Member
    Posted 4 years ago #

    There is a perfect reason for a thank you page: You can measure (i.e. in Google Analytics) not only how many people arrived on your contact form, but how many finished the process and submitted the form correctly if you had a thank you page.

    Without that you can only measure the people arriving, but if you paid Google or some other search again for sending traffic to your site, it is crucial to know how many finished their visit and took the action.

    I would like to see an optional "landing or thank you page" field in your excellent plug in.

    I will try sancho320 advice as an workaround. Thx and regards

    Anthony

  8. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    AnthonyOwen, yes, tracking form submissions is very important. I guess most of users who want "Thank you page" actually want a way to track the form submissions.

    And, the important thing most of them don't know yet is that Google Analytics doesn't need "Thank you page" to track events. There is a smarter way and Contact Form 7 supports it.

    If you want to know about how to track form submissions with Google Analytics, see this post:
    Tracking Form Submissions with Google Analytics

  9. skeeboo
    Member
    Posted 4 years ago #

    I'd also like to see the use of redirect as an option. Right now I use Contact 7 for contact forms and like the way it works by default. That said, I do have some clients that offer a freebie like an ebook or mp3 audio recording, and like to use redirects because the contact form then becomes a way to "register" people who want access to the freebie. So in that setting, the ability to have someone fill out the contact form with their name, email, message, etc and then immediately get redirected to a "thank you" page which contains the info or download they are seeking is probably best achieved with a redirect.

    The hack sancho posted above seems to work nicely. Hopefully in the future, something like that or better will become an option in the settings for each form this wonderful plugin can create.

  10. AlexLakes
    Member
    Posted 4 years ago #

    Yes, I'd also like the redirect option upon success. I have a client that absolutely WANTS a custom redirect page so he can use the form to capture leads offering a free fact sheet download AND using a custom redirect to then offer upsell options. He's smart for wanting a custom landing page. There ARE legitimate reasons for wanting this.

    Please just give us the option.

    I've noticed that on Contact Form 7 version 2.1.2 (the latest) that NONE of these hacks work for me (including adding the line to 'Additional Settings', or even altering the .js). You're not really actively trying to prevent even these hacks from working now, are you??!

  11. msdana
    Member
    Posted 4 years ago #

    Count me in as well for a custom redirect page. A client of mine would like to offer a coupon for successful email submission and it currently can not be done with this plugin.

    In addition, on one of my forms, the successful message gets lost and users have to scroll down past the empty form to see the results. :(

  12. mlblanchard
    Member
    Posted 4 years ago #

    I have a similar need to previous commenters. I would like to use the contact form as a means to gather user info in exchange for a PDF or other downloadable content. Would be great to have this capability available directly in the plugin, vs. having to find a workaround.

    Thanks,

    Michael

  13. petethebloke
    Member
    Posted 4 years ago #

    In the same situation as msdana . Is there a simple way to hide the form once it's been sent-ok? That would be sufficient for my client.

  14. zigojacko
    Member
    Posted 4 years ago #

    @takayukister

    I have followed the process here:-

    Tracking Form Submissions with Google Analytics

    The code I have inserted is:- on_sent_ok: "pageTracker._trackPageview('/contact/thank-you');"

    However, this is disabling my AJAX green message sent ok notification. Anyone that submits the contact form still needs to be informed that their message sent ok, have I done something wrong or can you advise how I can still get the ok message to appear after enabling a virtual page for conversion tracking for goals in Google Analytics?

    Thanks

  15. brandoo
    Member
    Posted 4 years ago #

    My Ajax notification boxes aren't showing, but my analytics isn't tracking the submissions either, is your's at least tracking the submissions?
    I tried with Pageviews and Events, neither works.

  16. angrypirate
    Member
    Posted 4 years ago #

    i have redirected my dns from my original wp site to my new site. I made no changes to CF7, but now there is no delivery confirmation when i submit. (just the revolving arrows)

    Can someone help me please?!

  17. djones101
    Member
    Posted 4 years ago #

    @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.

    @takayukister

    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.

  18. djones101
    Member
    Posted 4 years ago #

    @sancho320

    Put this line in the "Additional Settings" field, at the bottom of each form:
    
    on_sent_ok: "location.replace('http://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...

  19. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    I have written a post.

    Redirecting to Another URL After Submissions

    I don't recommend using it.

    Really.

  20. djones101
    Member
    Posted 4 years ago #

    @Takayukister

    That would be nice... but with the upgrades that no longer works.

  21. djones101
    Member
    Posted 4 years ago #

    For your information.

    In additional settings...

    on_sent_ok: "location = 'http://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.

  22. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    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.

  23. khyams
    Member
    Posted 4 years ago #

    on_sent_ok: "location = 'http://example.com/new-page';"

    and

    <?php wp_footer(); ?>

    Works in 2.9.2, fyi. If you all already knew that then disregard my post.

  24. David Jones
    Member
    Posted 4 years ago #

    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.

  25. WP Voyager
    Member
    Posted 4 years ago #

    @djones101:

    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 3D

  26. patricklondon
    Member
    Posted 4 years ago #

    Having 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.2

  27. zimmaron
    Member
    Posted 4 years ago #

    What 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.

  28. patricklondon
    Member
    Posted 4 years ago #

    I couldn't agree more.

  29. scobb99
    Member
    Posted 4 years ago #

    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!

  30. David Jones
    Member
    Posted 4 years ago #

    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 = 'http://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.

Topic Closed

This topic has been closed to new replies.

About this Topic