How to make Contact Form 7 messages appear in a pop-up box?

I’m using Contact Form 7 plugin for WordPress and I would like to show both the “Validation errors ocurred” and “Message sent sucessfully” messages in a pop-up box instead of a text in the page (because this last option would ruin the elements position).

I understand I have to use the Additional Settings box, but what is the code to do it? I’ve tried the following for the sucessful message:

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

But it doesn’t seem to work. And I’ve no idea what’s the code for the validation errors message.

Related posts

Leave a Reply