• Hi,

    I used to use following code in the addtional setting

    on_sent_ok: “location = ‘https://www.personal-training-mittelhessen.de/confirm’;”

    and I replace the code, as described, with following code in function.php

    add_action( ‘wp_footer’, ‘mycustom_wp_footer’ );

    function mycustom_wp_footer() {
    ?>
    <script type=”text/javascript”>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    location = ‘https://www.personal-training-mittelhessen.de/confirm’;
    }, false );
    </script>
    <?php
    }

    but the redirect after submit does not work.

    How do I need to change the code? Please note, that I am not a developer.

    I would be great, if you could give me the code I need to copy into functions.php

    Thank you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘ON_SENT_OK does not work’ is closed to new replies.