Integrating Hubspot Forms with GatsbyJS

Hi

My challenge is that I need to send form submissions to Hubspot from GatsbyJS. I’ve identified a few ways to do form handling on a GatsbyJS based (react) website but I would like to know if anyone has done this before and if there’s any tips or best practices on how to do form handling between a react based site and Hubspot.

A

@eppio I would recommend using the HubSpot Forms API to submit the data from your Gatsby powered form to HubSpot. See the documentation here: https://developers.hubspot.com/docs/methods/forms/submit_form_v3

Just make sure you’re input name attributes match the contact property IDs inside of HubSpot.

The link you provided no longer works.

@saqib-ahmed the documentation pages are currently in the middle of being re-done. Here is a link that works: https://legacydocs.hubspot.com/docs/methods/forms/submit_form