CMS Development

Pierre333
Participant

Fire HTML script upon form sent

Hi,

 

We need to add a javascript code upon form validation.

 

How can we do this please ?

We'd like to replace our Tag Manager current tweak if possible.

 

Thanks,

0 Upvotes
1 Reply 1
jieyintan
HubSpot Employee
HubSpot Employee

Fire HTML script upon form sent

Hi @Pierre333 

 

If you're using a HubSpot form, here's how you can customize the form embed code to run scripts when a form is submitted: https://developers.hubspot.com/docs/methods/forms/advanced_form_options