Front End Form to Append HubDB Table

SOLVE
Highlighted
Regular Contributor

Hello,

Has anyone ever tried or know of a way to have a front-end form that creates a new row and populates the fields in HubDB table each time it is submitted?

Thanks,
Jarrick

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
HubSpot Moderator

Hi @jarrick, HubDB PUT methods would require authentication (Hapikey or Oauth), so HubSpot doesn't support any CORS/AJAX requests to those endpoints on the frontend. You could use the forms API to send data to your server, then send a PUT request with that data to a HUBDB table, but that would require a pretty custom setup.

Connor Barley

HubSpot Developer Support
Reply
0 Upvotes
2 Replies
HubSpot Moderator

Hi @jarrick, HubDB PUT methods would require authentication (Hapikey or Oauth), so HubSpot doesn't support any CORS/AJAX requests to those endpoints on the frontend. You could use the forms API to send data to your server, then send a PUT request with that data to a HUBDB table, but that would require a pretty custom setup.

Connor Barley

HubSpot Developer Support
Reply
0 Upvotes
Regular Contributor

Thanks for the response Connor!

Reply
0 Upvotes