Support » Plugins and Hacks » Contact Form 7 » DHTML Thank You Page with Contact Form 7

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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?

    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.

    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…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘DHTML Thank You Page with Contact Form 7’ is closed to new replies.