Save custom data form in hubspot db

Hello to everyone,

in a html page of hubspot I have a custom form in html and I get the result in javascritp. is it possible to save the result of the form in hubspot db when I submit? I went to see the api (this link) but I did not understand how and where to implement them. Is it possible to have an example?

Thanks

Hi @Francescoo,

HubDB is intended for public facing website content; it should not be used to store contact information. You’ll want to use the Forms API to submit this form data to HubSpot:

developers.hubspot.com

Submit data for a form

Send form submission data to HubSpot. This endpoint supports cross-origin AJAX (CORS) requests, allowing you to submit form data directly to HubSpot client-side using JavaScript.