We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Dec 18, 2019 12:00 PM
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.
Solved! Go to Solution.
Dec 19, 2019 4:45 AM
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!
Dec 20, 2019 3:27 AM
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 !
Dec 19, 2019 4:45 AM
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!
Dec 20, 2019 3:27 AM
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 !