APIs & Integrations

Kurwyne
Member

Hubspot Form Questions

Hey there, I wasn’t able to find any information to this in the documents but I am interested in knowing if the hubspot form API supports a submit function so that on successful submissions we can add an event to take place on the page. Can anyone confirm if the hub spot api supports this method?

0 Upvotes
1 Reply 1
Dadams
HubSpot Employee
HubSpot Employee

Hubspot Form Questions

Hi @Kurwyne_Gayle

Currently the Forms API can only be accessed server-side (there is no CORS support for JavaScript requests), so if you’re using the Forms API you would need to send the data from your page to your server, so that your server could make the request to HubSpot. Any response sent to the actual page would need to come back from your server.

0 Upvotes