Form hidden field

Hi HubSpot,

I am currently using 1 form on a few pages in our website for report downloads. One issue I face is capturing source of form submission for certain web pages. One of the suggestions i found was to use a hidden field in the forms. Im slightly confused on how this can work. For example, since this is 1 form, how do i ensure a hidden field value is dynamic based on the web page? And for reporting, im concerned if it can show source of submission based on this. Appreciate any assistance here.

@DGanasan if your website is hosted in HubSpot, it’s going to know the page of the form submission already - you can access it via workflows here:

This would let you set a custom property to whatever you need it to be to use in reporting.

In the report builder, on the left, you can find reports based on forms by filtering here:

If you’re using Landing Pages (not website pages), there’s a prebuilt report that you can filter for each page…but it doesn’t work for website pages.

Hi @DGanasan ,

What would be the use case for this? Are you looking to track form fills that are coming from external sources i.e. (google ads, facebook, etc)? Or are you just looking to see which pages your form fills are occurring on? If it’s the latter, the hidden field method would probably not help.

If you’re looking to set up a tracking link and have that data populate to the contact that converts on the form, I’ll explain how it works here:

  1. Add the field you wish to populate data to, and make it hidden.

  1. Once you have your hidden field set in your form. Take whichever link to your site you are sending traffic to and set some parameters at the end of your link. To do this, at the end of your link add ?{{field_name}}={{field_value}}.

In the example i’m using utm_source which is a common use case for doing this, but you can do this with any text field. For the value you set it after the “=”.

BSmith08_1-1702343632790.png

  1. If you want to track multiple fields just add an “&” after this. For example:

/?utm_source=test-source&utm_medium=test-medium

Then when contacts fill out the form the value should be populated based on what you set:

If you are just looking to see what pages your form fills are occuring on, go to forms, pick the form you wish to see the data on and in the performance tab there should be a conversion pages report, and source report that will give you that info. You can also see the “First Conversion” and “Recent Conversion” properties on your contacts and build reports based on that.

Let me know if you have any questions.

Ben

Did this answer your question? If so, please help the community by marking this as a solution.

Hi @DGanasan,

If you want to create a form that captures the page its embedded on in a property, you can find two approaches here. Both require tinkering with Javascript:

https://community.hubspot.com/t5/Lead-Capture-Tools/forms-that-capture-urls-from-embeded-page-its-on/m-p/786710/highlight/true#M9228

https://community.hubspot.com/t5/APIs-Integrations/Passing-URL-data-through-a-form-submission/m-p/578536/highlight/true#M51003

Best regards!