• In August 2018 I updated our membership page / Contact Form 7 from “on_sent_ok” to a DOM event. As directed, I put the script into our functions.php file. It worked for several months, and now has stopped working.

    I’m a beginning level programmer, so not sure how to proceed from here. Any help would be appreciated.

    The Contact Form 7 form is on the page shown in my query, and this is the info in the functions.php file:

    <script>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    if ( ‘12828’ == event.detail.contactFormId ) {
    location = ‘http://hampshirebar.org/shop/&#8217;;
    }
    }, false );
    </script>

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘DOM event in functions.php stopped working’ is closed to new replies.