Contact Form 7 – add custom function on email send [closed]

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?


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

Leave a Comment