Last active
April 19, 2017 15:02
-
-
Save atwellpub/84ff809c96d5b0c5deee8cfe8602458b to your computer and use it in GitHub Desktop.
Trigger custom javascript on inbound form completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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