• I saw the on_sent_ok deprecation warning only recently. Most of us use the on_sent_ok settings area to track events and you are deprecating it without giving us at least the form name somewhere in the event object so that we can use JS only to do our basic form tracking.

    As of now, I have to write PHP to create a script variable that loops through all the CF7 contact forms and returns on array with CF7ID and CF7 Form name. That’s a little messy.

    Before you remove on_sent_ok functionality, would it be possible to add the contact form name or title to the event object that is returned with each dom event, the same way we can access the form id (event.detail.contactFormId)?

    It might also be helpful if you could also figure out a way to return a redirect url in the same object. Maybe a new additional field called ‘redirect_to’ or something like that.

    CF7 is one of the most used contact form solutions and I really want to thank you for all your work over the years. But, as it stands now, I stand to lose event tracking on dozens of client websites unless I whip up a custom PHP solution to get the form name and redirect URL and now have to update all the forms on all my client sites since it seems to indicate that this functionality will stop working in early 2018. Please keep backwards compatibility if you can, at least.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • I second that motion! I’ve tried reviewing your recommendations for using DOM events, and I have no bloody idea WTH to do! Contact Form 7 makes it possible for me to run the website for our volunteer non-profit, and if this function goes away, it’s going to be a serious headache. I can foresee spending hours trying to either figure out how to perform a simple redirect, or looking for a different contact form to use. I’m really distressed about this, because we cannot afford to hire someone to figure this out for us, so it falls on me. The beauty of CF7 is that it is simple and accessible. But I don’t even understand half of what @shorelinechrism posted, let alone trying to tackle stuff like “var wpcf7Elm = document.querySelector( ‘.wpcf7’ );” (Where the hell does that even go?) My eyes are already glazing over. Please don’t discontinue on_sent_ok. PLEASE!

    I found this plug in add-on that seems to work for me: CF7 Redirect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘on_sent_ok deprecation– please add event.detail.contactFormName’ is closed to new replies.