collect the data populated by the users in the forms

GABRIEL_LIMA
Member

Hello, I've created a form to capture leads and direct to a page on my site. Now I need to get the data that this user has filled out.

0 Upvotes
3 Replies 3
lscanlan
HubSpot Alumni

Hi @GABRIEL_LIMA,

 

Could you clarify if you created a HubSpot form? Or are you using a non-HubSpot form and trying to get the data into HubSpot? I think it's the latter, but I just want to be sure.

 

If it's a HubSpot form, I think you'll just need the embed code. You can find instructions for that here: https://knowledge.hubspot.com/articles/kcs_article/forms/how-can-i-share-a-hubspot-form-if-im-using-.... We also have some documentation on customizing the embed code here: https://developers.hubspot.com/docs/methods/forms/advanced_form_options.

 

If on the other hand you're using a non-HubSpot form and you need to pass that information into HubSpot through our Forms API, take a look at our documentation here: https://developers.hubspot.com/docs/methods/forms/forms_overview and here: https://developers.hubspot.com/docs/methods/forms/submit_form_v3.

But let me know if I've misunderstood what you're trying to do or if you have questions about any of this.

 

 - Leland

Leland Scanlan

HubSpot Developer Support
0 Upvotes
GABRIEL_LIMA
Member

Hi @lscanlan 

 

Yes the form is from the hubspot.

 

My situation is as follows. I've already created a form and embedded it on my site. After the user undertakes it will be redirected to another page of my site. What I want is to get this data that the user has filled out and pass that parameters to the other page.

0 Upvotes
lscanlan
HubSpot Alumni

Hey @GABRIEL_LIMA,

 

Sorry for the delay here, but what about using the onFormSubmit callback function (documented here:https://developers.hubspot.com/docs/methods/forms/advanced_form_options) to grab the values from the form when it's submitted? Then you could redirect the user to your page with the form field values appended in a query string, which would make those values accessible on your new page.

 

 - Leland

Leland Scanlan

HubSpot Developer Support
0 Upvotes