I have a question for which we can't find the answer. If someone submits their e-mail on our homepage (www.ilumio.nl) for a newsletter subscription the person doesn't get in our Hubspot-contactlist. According to Hubspot this must have to do something with the Java script but i do not have enough knowledge to find the real problem and the solution. We have a different website (www.store-direct.fr) where it works just fine. Can someone find out what goes wrong and how we can make it work?
Form has JavaScript bound to form submit event or submit button click event. This is how the tool captures submissions and any other events, and can prevent HubSpot from knowing when submissions occur.
or
Form was introduced after the page completed loading. The tool scans the page as soon as it loads and listens to submissions on forms that were present at that point.
The first issue is more likely the issue as I can see a lot of eventListeners attached to that submit button for the page that does not submit properly, but the one that does submit has far fewer. To fix, you'll either need to remove the event listeners from your submit button, come up with a JS workaround, replace your custom forms with HubSpot forms (though you won't be able to style the forms to your liking as a Free Account), or use the Forms API to submit data to HubSpot. The Forms API is more reliable overall than non-hubspot forms due to the caveats that are described in the knowledge article I linked, so I'd highly recommend using the API if you're able to.