New Forms: How to fill hidden fields with JavaScript
SOLVE
Huge pain point:
The Legacy Forms allowed to inject javascript to for example update form values or write data to hidden fields for tracking or various other use cases.
New Forms: How to fill hidden fields with JavaScript
SOLVE
Hey @dash-flow-io I can't definitely see this being a large pain point. I'd recomend sharing this with the product team through a feature request on the ideas forum here!
Tom Mahon Technical Consultant | Solutions Engineer | Community Champion Baskey Digitial
p.s. My script is embedded in the html of a custom module; but I've also made it work in the javascript using the onFormReadyEmbed Code Callback.
IMPORTANT: The form must be "Set as raw HTML form" in the Form's Style Options (so, this only works for Markeitng Pro or Enterprise).
Have fun
Mike
Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.
Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.
New Forms: How to fill hidden fields with JavaScript
SOLVE
Hey @dash-flow-io I can't definitely see this being a large pain point. I'd recomend sharing this with the product team through a feature request on the ideas forum here!
Tom Mahon Technical Consultant | Solutions Engineer | Community Champion Baskey Digitial
New Forms: How to fill hidden fields with JavaScript
SOLVE
Hi @dash-flow-io yep, you're correct, that is a typo. I have fat fingers and have to type a lot throughout my day. That still doesn't change my recomendation on opening this as a feature request to the product team however.
Tom Mahon Technical Consultant | Solutions Engineer | Community Champion Baskey Digitial
But, as mentioned, I'm looking at changing this and using a new implementation (without the iFrame).
Have fun
Mike
Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.