on_sent_ok deprecation– please add event.detail.contactFormName
-
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]
- The topic ‘on_sent_ok deprecation– please add event.detail.contactFormName’ is closed to new replies.