Support » Plugin: Contact Form 7 - Success Page Redirects » Redirects to thankyou page even when there are issues

  • eaybes

    (@eaybes)


    The form isn’t suppose to send an email but only data.
    When submitting the form it redirects to a thankyou page even when it has errors in it.

    <script>
    document.addEventListener( 'wpcf7invalid', function( event ) {
      window.location.replace('https://greenpeace.org/israel/');
      console.log('running');
    }, false );
    </script>

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

  • You must be logged in to reply to this topic.