andru26
4/2/2018 - 7:27 PM

Contact Form 7 Custom DOM Events

document.addEventListener( 'wpcf7submit', function( event ) {
    if ( '123' == event.detail.contactFormId ) {
        alert( "The contact form ID is 123." );
        // do something productive
    }
}, false );