Viewing 5 replies - 1 through 5 (of 5 total)
  • I am also having similar trouble. Whenever i use the on_sent_ok function, in any way, the form wont work – click submit button, it reloads the captcha code but wont send the form.

    Im looking to set up an event to my google analytics – when someone sends an enquiry using the form.

    Any help would be much appreciated.

    Many thanks.

    https://www.londonmusicfactory.co.uk/book-a-music-lesson

    @harrisr7 – This could be due to a Javascript conflict with either your current WordPress theme or one of the other plugins you are using – see Contact Form 7 Email Issues – there is a link there that covers Javascript Conflicts.

    on_sent_ok is the generally the absolutely last thing that runs in CF7 so any interferring Javascript Conflict can stop this running.

    Thread Starter harrisr7

    (@harrisr7)

    @buzztone. Thanks for the rpely. I had previously gone through that entire page before I posted. All checks test fine, the green confirmation at the bottom appears, and the email is sent and received. The redirect is the only ting that appears not to work. I can not find where to look to test that functionality and all other places to look on that page appear fine, as indeed the email does work. Since I no longer have a working redirect (even those forms that worked in the past no longer work), I have no reference to compare to in order to find anomalies.

    I am not that good atjavascript, but usually can find what I am looking for. Doing a packet capture during the post and resulting answer from the web server, the POST command send the post packet to the server and the server answers with the page that includes the “successful” gren bar at the bottom of the contact form, but nothing in the returning data packets show any signs of doing a re-direct so I have to believe that the issue is not a javascript collision, but a failur in the plugin to generate the redirect code in the first place.

    Thread Starter harrisr7

    (@harrisr7)

    @homesickj, I too am having a problem seeing the events in analytics. I am hoping that whatever issue the redirect has is the same one preventing the analytics event from posting. Both come from the ‘on_sent_ok’

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page redirect does not work after form submission.’ is closed to new replies.