WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
DHTML Thank You Page with Contact Form 7 (4 posts)

  1. Philippe Gras
    Member
    Posted 1 year ago #

    Hello there,
    I'm trying to do a DHTML Thank You Page with Contact Form 7, but it doesn't work as I thougt. Using on_sent_ok: "function();" I can't open a new window or display a layer on the form page. Only works document.write() method, and only in an inline script.
    Do someone have a smart trick for such a DHTML Thank You Page with Contact Form 7 ?

    http://wordpress.org/extend/plugins/contact-form-7/

  2. davejampole
    Member
    Posted 1 year ago #

    At the bottom of the CF7 setup page, there are a number of messages you can use depending on different situations - not a 'page' but visual feedback that the form has been sent. You can change the wording of the messages to suit your preferences.

    Have you thought about using that?

  3. Philippe Gras
    Member
    Posted 1 year ago #

    I used this box to declare a JS function so: on_sent_ok: "function();" and it works properly, but it's only an ugly document.write() method. I'm searching also a smarter way in DHTML or Ajax.

  4. Philippe Gras
    Member
    Posted 1 year ago #

    Now, I'm able to show you what I've done on my form to order comments on blogposts. As you may find at the end on the source code, I wrote a little document.write() method, that replace the page when the form has been sent. But you'll see it's very ugly if you test it. I would do a smarter DHTML Thank You Page with Contact Form 7, but I need some help to display it…

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic