Populating hidden form fields with information stored in cookies

@cathalhopper Thanks for the reply.

I actually went a little further into inspecting the form and I have a couple of new pieces of information with you that I thought I would share.

  1. The form is embedded on a HubSpot landing page. I don’t believe this gives me the option of adding the onFormSubmit function to the embed code. If I can, I am not sure how to do it, and pointing me in the right direction would be helpful.
  2. The form is actually set as a raw HTML form, which I didn’t realize earlier.

And can you clarify what you mean by this? I am not sure I am following.


alternatively you can add the GTM code to run on your page which you are iframing from > or the best alternative would be directly adding in the HubSpot form instead of via an iframe if possible.