Skip to content

Instantly share code, notes, and snippets.

@dilverdev
Created April 27, 2020 04:52
Show Gist options
  • Save dilverdev/3b32ecc5f9405dd16b28e958835e6dd1 to your computer and use it in GitHub Desktop.
Save dilverdev/3b32ecc5f9405dd16b28e958835e6dd1 to your computer and use it in GitHub Desktop.
Events Contact Form 7
document.addEventListener('wpcf7invalid', function (event) {
console.log('wpcf7invalid')
}, false);
document.addEventListener('wpcf7spam', function (event) {
console.log('wpcf7spam')
}, false);
document.addEventListener('wpcf7mailsent', function (event) {
console.log('wpcf7mailsent')
}, false);
document.addEventListener('wpcf7submit', function (event) {
console.log('wpcf7submit')
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment