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?

closed as off-topic by fuxia Jul 28 '14 at 7:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the 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

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();"

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