APIs & Integrations

Nbergamini
メンバー

Retrieving data from an hubSpot form

解決

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 いいね!
2件の承認済みベストアンサー
Willson
解決策
HubSpot Employee
HubSpot Employee

Retrieving data from an hubSpot form

解決

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
解決策
メンバー

Retrieving data from an hubSpot form

解決

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 !

元の投稿で解決策を見る

2件の返信
Willson
解決策
HubSpot Employee
HubSpot Employee

Retrieving data from an hubSpot form

解決

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
解決策
メンバー

Retrieving data from an hubSpot form

解決

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 !