• 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
    
    Danny
    
    
    
    
    
    
    

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Which version of WordPress and which version of the Contact Form 7 plugin do you use on the site?

    Thread Starter 5starcruises

    (@5starcruises)

    Hi i have latest version of WP and 5.3.2 for CF7 been trying different versions to see if i could get it too work. I use WP Rocket, Perfmatters and Cloudflare + Oxygen Builder.

    Thanks

    Danny

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Is there any reason to use such an outdated version?

    Thread Starter 5starcruises

    (@5starcruises)

    I read that it might be one that it works with i open to using any just trying to make it work.

    Thanks

    Danny

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Redirection Using wpcf7mailsent’ is closed to new replies.