CMS Development

eppio
Member

Integrating Hubspot Forms with GatsbyJS

SOLVE

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

0 Upvotes
1 Accepted solution
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Integrating Hubspot Forms with GatsbyJS

SOLVE

@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

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

0 Upvotes
3 Replies 3
stefen
Key Advisor | Partner
Key Advisor | Partner

Integrating Hubspot Forms with GatsbyJS

SOLVE

@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.

Stefen Phelps, Community Champion, Kelp Web Developer
saqib-ahmed
Member

Integrating Hubspot Forms with GatsbyJS

SOLVE

The link you provided no longer works. 

0 Upvotes
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Integrating Hubspot Forms with GatsbyJS

SOLVE

@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

Stefen Phelps, Community Champion, Kelp Web Developer
0 Upvotes