We want to send the inputs of a form to a third party, but the global form event for hsFormCallback is not returning any data.
Expected behaviour is that data contains the form fields and values for the onFormSubmit event, as per https://developers.hubspot.com/global-form-events.
Looked to see if it was in other form events, but it’s not.
I’m not able to reproduce this behavior on my end: When I log the event data of a form submission, I’m seeing the `data` array appear correctly. Check out this example page: HTML Form Test Page
Can you give me an example page and/or form where you’re seeing this behavior?
This appears extremely similar to an existing issue that was recently resolved, but it looks like I’m still able to reproduce this on your sample page. Let me dig into this further with my team to see what might be going on. I’ll update this topic when I have more information.
I was actually able to get to the bottom of this right away. The onFormSubmit event & callback both depend on jQuery to function properly. Since your example page doesn’t include jQuery, the form values aren’t properly pulled into the event. I’d advise including jQuery on your page(s) to fix this.