Capturing info from 3rd party widget form

Our client is going to have a 3rd party widget embed on their CMS site that will contain a form. We want to be able to capture that form information in Hubspot. What’s the best way to do that?

The 3rd party developer will be working with us on getting the information captured in Hubspot.

Can he use the form api to post the information to a corresponding form in Hubspot? Based on documentation, I know we will need to set up a private app to use for whatever solution is determined to be best.

Thanks,

Terry McMillan

Hi, @tmcmillan99 :waving_hand: Thanks for your question. Can you share more about steps you’ve already taken? Here’s what I would consider if I was researching this project:

  • JavaScript — Listen for the form submission event, prevent the form from submitting normally, and capture the data you need. Probably on listener for the formID and one to prevent the normal submission
  • Fetch API
  • Look into the un-authed Forms API endpoint — Submit data to a form (useful if you are running into CORS issues)
  • `htuk` — are you sending the HubSpot tracking code value?
  • Privacy and Security — are they needing to use a server-side proxy to handle submissions? (may not be needed, but good to ask)
  • A Private App may not be needed if you are using the above forms endpoint. If you end up using the Submit data to a form (Supporting Authentication) endpoint, then yes a Private App is necessary

Have fun building! —Jaycee

@Jaycee_Lewis Thanks for the infor and suggestions. We will explore those options.

Thanks,

Terry