Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Just playing around with Wordpress / Contact Form 7.

Is it possible / do you know how to add custom javascript function on successful email send event?

share|improve this question
1  
There are a couple of filters inside the function mail_callback(), located in /plugins/contact-form-7/includes/classes.php that may be handy, but donnow how... This forum search may be useful as well. –  brasofilo Jul 4 '12 at 17:33
add comment

1 Answer

up vote 3 down vote accepted

simply add you JavaScript function to your page then find the Additional Settings field at the bottom of the contact form management page and use the on_sent_ok JavaScript action hook like so:

on_sent_ok: "MY_JavaScript_function_Name();"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.