Contact form 7 after submit
if($("#form").length){ $(document).on("wpcf7mailsent", function(e){ // do stuff }); }