Trigger Custom Javascript Event on Form Completion

The below script will enable you to fire custom javascript code after the inbound now form has finished processing. This is useful for setting custom cookies, sending custom Google Analytic Events, or anything else you can imagine.

1 2 3 4 5 6
jQuery(document).ready(function($) {
// Trigger custom script on inbound now form completion
$(".wpl-track-me").on("inbound_form_complete", function() {
// do stuff