APIs & Integrations

Nbergamini
Mitglied

Retrieving data from an hubSpot form

lösung

Hello,

I'm a developper on a webapp that uses hubspot embed script for taking appointments. In this case, I configured hubspot to create an hubspot form to store the users information.

 

I'm facing a problem here because I would like to get those data without using my own way in javascript.

 

Is there an official solution to fetch the data from a form after the submit ? 

 

Thanks by advance.

0 Upvotes
2 Akzeptierte Lösungen
Willson
Lösung
HubSpot Employee
HubSpot Employee

Retrieving data from an hubSpot form

lösung

Hi @Nbergamini 

 

To confirm, you're looking to get the form data that you're submitting to HubSpot without the use of some Javascript to do so? 

 

If so, the only recommendations we can make is to work with our API to Get submissions for a form, this endpoint can be seen here:

https://developers.hubspot.com/docs/methods/forms/get-submissions-for-a-form

This will allow you allow you to get the submissions for the specified form using the form GUID - This will include the fields in the submissions, the time of the form submission, and the page URL that the form was submitted on. 

 

However, it would be recommended to use a js function with the onSubmit(); event when posting this data to HubSpot, this would allow you to capture the data elsewhere whilst still passing the data to HubSpot. 

 

I hope this helps!

Product Manager @ HubSpot

Lösung in ursprünglichem Beitrag anzeigen

Nbergamini
Lösung
Mitglied

Retrieving data from an hubSpot form

lösung

Hello @Willson ,

 

Thanks for your reply, I finally managed to find a solution for my problem on the hubspot documentation. 

 

The solution is to use the Global Form Event, which can send an event when the form is submitting => https://developers.hubspot.com/global-form-events

 

Thanks again and have a nice day !

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten
Willson
Lösung
HubSpot Employee
HubSpot Employee

Retrieving data from an hubSpot form

lösung

Hi @Nbergamini 

 

To confirm, you're looking to get the form data that you're submitting to HubSpot without the use of some Javascript to do so? 

 

If so, the only recommendations we can make is to work with our API to Get submissions for a form, this endpoint can be seen here:

https://developers.hubspot.com/docs/methods/forms/get-submissions-for-a-form

This will allow you allow you to get the submissions for the specified form using the form GUID - This will include the fields in the submissions, the time of the form submission, and the page URL that the form was submitted on. 

 

However, it would be recommended to use a js function with the onSubmit(); event when posting this data to HubSpot, this would allow you to capture the data elsewhere whilst still passing the data to HubSpot. 

 

I hope this helps!

Product Manager @ HubSpot
Nbergamini
Lösung
Mitglied

Retrieving data from an hubSpot form

lösung

Hello @Willson ,

 

Thanks for your reply, I finally managed to find a solution for my problem on the hubspot documentation. 

 

The solution is to use the Global Form Event, which can send an event when the form is submitting => https://developers.hubspot.com/global-form-events

 

Thanks again and have a nice day !