Redirection Using wpcf7mailsent
-
Hi. I am trying to figure out where i am going wrong. I use Oxygen Builder so no child theme. I use code snippets and use this code. <?php add_action( 'wp_footer', function() { ?> <script> var ready = (callback) => { if (document.readyState != "loading") callback(); else document.addEventListener("DOMContentLoaded", callback); } ready(() => { document.addEventListener( 'wpcf7mailsent', function( event ) { location = 'https://www.cassies.com.au/thank-you/'; }, false ); }); </script> <?php },9999); I have this active. Do i need to change the code within the form itself from [submit "Send"] to [wpcf7mailsent "Send"] or how do i add the code to the form? I have looked everywhere to find a video tutorial biut couldnt find anything. I have looked at all the dom event links in C7F as well. Any help gratefully received Thanks DannyThe page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Redirection Using wpcf7mailsent’ is closed to new replies.