• I have used DOM code in functions.php file, also tried it in header.php file. Doesn’t redirect.

    Here is the code used:
    <script type=”text/javascript”>
    document.addEventListener( ‘wpcf7submit’, function( event ) {
    if ( ‘12946’ == event.detail.contactFormId ) {
    location = ‘https://hampshirebar.org/pact-online-payment/&#8217;;
    }
    }, false );
    </script>

    Please help. Thank you!

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact Form Redirect (DOM) not working’ is closed to new replies.