Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save atwellpub/84ff809c96d5b0c5deee8cfe8602458b to your computer and use it in GitHub Desktop.
Save atwellpub/84ff809c96d5b0c5deee8cfe8602458b to your computer and use it in GitHub Desktop.
Trigger custom javascript on inbound form completion
// Usage: https://github.com/inboundnow/cta/blob/master/shared/docs/analytics.events.md#form_before_submission
// Adding the callback
function form_after_submission_function( data ) {
var data = data || {};
// filter form data
};
// Hook the function up the the `form_after_submission` event
_inbound.add_action( 'form_after_submission', form_after_submission_function, 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment