ON_SENT_OK does not work
-
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
- The topic ‘ON_SENT_OK does not work’ is closed to new replies.