How to stop collected-forms from collecting a form
HI there,
We've been using Collected forms for a few years and I've noticed that as of August 2019 it appears that the collected forms script is now collecting form submissions for dynamically created forms that weren't present when the collected forms script loaded. The documentation is no longer correct with regard to this: https://knowledge.hubspot.com/forms/use-non-hubspot-forms
Its great to see that Hubspot is improving the collected-forms javascript but we have a single page application and we don't want all of the forms to be collected. Some of them are sensitive for GDPR purposes and we don't want to submit them to Hubspot, plus, they are messing up the details of our contacts in Hubspot.
I have tried to add an event listent to to the form to prevent default on the event and I've tried changing the type of the button from "submit" to a a regular button based on what the documentaiton above suggests would cause a form not to submit but the form is still submitting.
How can I mark a form as not requiring collection by Hubspot collected-forms?
Thanks for that link. Is it possible to comment on the fact that dynamically created forms are now being collected by Hubspot collected-forms.js . This does not conform to the documenation here https://knowledge.hubspot.com/forms/use-non-hubspot-forms
We've been using collected-forms.js for years (even back when it was called lead-in.js) and I can confirm that dynamically created forms started getting collected in our app as of August 2019
ps: That workaround didnt work for me but the following seems to block my form from being collected: