# Form hidden field

**URL:** <https://community.hubspot.com/t/form-hidden-field/95839>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** enterprise\
**Created:** [December 12, 2023, 12:46am UTC](https://community.hubspot.com/t/form-hidden-field/95839 "2023-12-12T00:46:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGanasan](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@DGanasan](https://community.hubspot.com/u/DGanasan)\
**Post date:** [December 12, 2023, 12:46am UTC](https://community.hubspot.com/t/form-hidden-field/95839/1 "2023-12-12T00:46:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [December 12, 2023, 1:18am UTC](https://community.hubspot.com/t/form-hidden-field/95839/2 "2023-12-12T01:18:19Z")

</div>

@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:

 ![Screenshot 2023-12-11 at 7.10.36 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/0/e0ecf494cc695685174002a8f469d5269e4bea25.png)

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:

 ![Screenshot 2023-12-11 at 7.14.12 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/4/44af9b931a43d2452af4445a2c85d6ba3031c187.png)

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.

 ![Screenshot 2023-12-11 at 7.16.49 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/0/c08057fec447bac180d06564d5da2cb45086d7ac.png)

---

<div class="post-metadata">

**Author:** ![BSmith08](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bsmith08/32/80858_2.png) [@BSmith08](https://community.hubspot.com/u/BSmith08)\
**Post date:** [December 12, 2023, 1:18am UTC](https://community.hubspot.com/t/form-hidden-field/95839/3 "2023-12-12T01:18:26Z")

</div>

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.

 ![BSmith08_0-1702343632801.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/a/1a3d2083992b4c5808bda6155692dcbe9e2e3789.png)

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](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/e3a4009e2f511c41916232607ba68efe5404f0cb.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:

 ![BSmith08_2-1702343632774.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/dae3bf2a588da2434eb146f0fa715febec23f2af.png)

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.

 ![BSmith08_3-1702343761370.png](https://d2qpr2jzcazej7.cloudfront.net/original/1X/d4a891c7aeb818e34803ef140baf377cf7e31f68.png)

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.** _

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [December 12, 2023, 5:18am UTC](https://community.hubspot.com/t/form-hidden-field/95839/4 "2023-12-12T05:18:57Z")

</div>

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&colon;

[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/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](https://community.hubspot.com/t5/APIs-Integrations/Passing-URL-data-through-a-form-submission/m-p/578536/highlight/true#M51003)

Best regards!
