Global form event not outputting values in 'data' object

Hi,

Similarly to the user experiences, in this link, i’m not able to see values within the ‘data’ object when a form is submitted. To confirm my suspicions, I created a JavaScript variable to capture the event data output in GTM which confirmed that the ‘data’ object appears to be empty.

What I don’t understand is why the ‘data’ object appears to be empty, yet as best I can tell JQuery is installed on the page which resolved the other user’s issues.

It would be great if someone could point me in the right direction as to where I’m going wrong?

Thanks

This is the page in question: https://info.clements.com/clements-worldwide-ireland-motor-insurance

Hi, @GaryMoore-SL.

Thanks for reaching out. I’m happy to help.

It looks like you’re using the onFormSubmitted global form event?

If so, when onFormSubmitted executes, it’s expected to return an empty data object, per the documented example.

Like the other customer, you may want to use the onFormSubmit event. It executes at the beginning of a form submission, just before it has persisted. This event returns the form fields in a data array.