What script do you have? Where did you place it?
This is the script:
<script>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
location = ‘https://bovertelt.nl/cartflows_step/afrekenen-reading-van-je-hond/’;
}, false );
</script>
I placed it in the field Additional settings.
Hey, pasting the code here now I see that a symbol has been replaced by ascii?
And I see it lacked a space.
Changed it to:
<script>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
location = ‘https://bovertelt.nl/cartflows_step/afrekenen-reading-van-je-hond/’ ;
}, false );
</script>
but unfortunately it is still not working 🙁
There is something in the code that keeps getting changed!
Now it’s
<script>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
location = ‘https://bovertelt.nl/cartflows_step/afrekenen-reading-van-je-hond/’ ;
}, false );
</script>
But still not working …
You seem to have placed it in the wrong place. See the following post and try putting it into your theme’s functions.php file:
on_sent_ok Is Deprecated
It doesn’t have to be functions.php, but it is comparatively reliable.
Ok, I didn’t understand de documentation.
I don’t have access to the functions.php on this site. Is there another way to do it?