Contact Form 7
[resolved] Question: How to make a popup box on submit? (2 posts)

  1. lisa thirdside
    Posted 1 year ago #

    Hi all,

    I'm just starting to dig into the support forum and documentation, so forgive me if the answer is staring me in the face somewhere. I'll come back and mark this resolved if I find this quickly enough.

    I need to make a popup box that happens once a user has clicked the Submit button on the form. It's just a text box, but it has a bit more detailed confirmation info and some instructions for follow-up, so the standard little green box that displays at the bottom won't do. I'm assuming this is something I could put at the bottom in "Additional Settings" but I'm not sure what to put there. I'm hoping I don't have to delve into jquery because that's not really my strong suit.



  2. lisa thirdside
    Posted 1 year ago #

    Never mind! Found an old thread right here on the forum that answered my question. If you're interested, you do just go to Additional Settings at the bottom and add:

    on_sent_ok: "alert('Your message here!');"

    Full thread is here: http://wordpress.org/support/topic/plugin-contact-form-7-request-javascript-of-errorsuccess-alert-pop-up-box-solution?replies=6

    Now, my popup in Chrome starts with a header that reads "The page at (URL) says:" which is kind of annoying but I can live with it. I'm going to mark this as resolved, but if anyone knows how I might better style the alert box, I'd appreciate it.

    Thanks for reading!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic