• Cat

    (@stitchyrocks)


    Hi,

    My form is working perfectly fine in all the newer browsers, but I noticed that it ajax isn’t working properly on older ones such as Firefox v70. It looks like when I submit the browser redirects to a URL with some weird code afterwards like in this post: https://contactform7.com/faq/after-submission-my-contact-form-redirects/.

    I already tried deactivating all other plugins and even downgraded to an earlier version of jQuery but still ajax doesn’t work on browsers below Firefox version 80.

    The form does submit properly on ALL browsers, though. I do get a notification email with every new submission. I’m just not able to get the ajax to work.

    Does anyone have any ideas how to fix this issue?

    • This topic was modified 2 years, 5 months ago by Cat.
    • This topic was modified 2 years, 5 months ago by Cat.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter Cat

    (@stitchyrocks)

    Thank you, got it.

    For my form, I am re-directing users to a separate thank you page (I know, I know, you said not to do that haha) using the following JS code:

    document.addEventListener( 'wpcf7mailsent', function( event ) {
                      var _link = 'https://url-to-thank-you-page.com';
                      window.location.replace(_link);
                      return false;
    				}, false );

    But it doesn’t work for the non-ajax forms. How do I force a redirect to the Thank You page if the form is successfully submitted?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AJAX not working on older browsers’ is closed to new replies.