First I would like to say how great your CF7 plugin is and that other developers make plugins that work with it is a testament to that.
However I am not a programmer nor do I pretend to be one and the planned changes has me worried.
Why are you removing/abolishing the ‘on_sent_ok’ hook method (seems to work well for me)?
If you must remove the ‘on_sent_ok’ hook, why are you not making it easier on us by having something like ‘aftersubmiturl=’ in the short code?
I don’t like coding/modifying WordPress files, I like to be able to do everything from the safety of the dashboard. Modifying templates runs the risk of breaking things or creating security issues and/or having all your hard work removed on an update (if you don’t know how to create a child theme, learned that one painfully in my early years of WordPress).
I tried to use XYZ HTML Snippets to insert the ‘document.addEventListener’ script to no avail. I assume because it has to be placed somewhere special like the page header or something? A better in-depth instructions in the documentation for us code challenged people would be nice.
To sum it up please keep the ‘on_sent_ok’ hook or have the ability to set the URL redirect in the short code or at least something that does not require hacking ones WordPress install.
FYI: Why is the ‘on_sent_ok’ hook is so important to me? I have a couple main reasons – I use your CF7 plugin to collect extra information before sending them to a payment portal and/or as a multi part/page form.
Thanks a lot for your answer @takayukister
It’s exactly what I was looking for.
Great
Rémi
Sorry but I’ve another question in the same order.
I’ve to install an Adwords Tracking code on my site (and not a Google Analytic tracking code), especialy on the form page.
Is it the same way you explain here : https://contactform7.com/tracking-form-submissions-with-google-analytics/ ?
Is it possible ?
Thanks
Thanks a lot !…
It works perfectly !… exactly what I was looking for !
Really great
The plugin is severely out of date. User beware.
I’ve tried putting the script in the documentation (https://contactform7.com/redirecting-to-another-url-after-submissions/) both on the page with my form, and in the form “additional settings.” Neither works.
For those who got it working, what did you do?