Last active
November 23, 2017 12:56
-
-
Save bavington/97cdde74f28f1c86244de794a2f172e9 to your computer and use it in GitHub Desktop.
Basic CF7 Event Handler (Test)
This file contains hidden or 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
<script> | |
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
alert( "DOM Event 'wpcf7mailsent' was heard on CF7 with the Form ID: " + event.detail.contactFormId); | |
}, false ); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The test Event Handler now alerts a successful detection with the respective Form ID.