# Using the same form on multiple pages

**URL:** <https://community.hubspot.com/t/using-the-same-form-on-multiple-pages/59082>\
**Category:** Lead Capture Tools\
**Tags:** forms\
**Created:** [June 15, 2022, 10:19am UTC](https://community.hubspot.com/t/using-the-same-form-on-multiple-pages/59082 "2022-06-15T10:19:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanakD](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JanakD](https://community.hubspot.com/u/JanakD)\
**Post date:** [June 15, 2022, 10:19am UTC](https://community.hubspot.com/t/using-the-same-form-on-multiple-pages/59082/1 "2022-06-15T10:19:30Z")

</div>

Hello,

I am looking to create a lead gen form and implement on numerous web pages. After submission, I want contacts redirected to specific webpages based on the page they filled out the form. This is so I don’t need to create multiple copies of the same form.

Ideally, i’d also like each contact in HS tagged with the webpage they filled out the form.

Any help on this would be greatly appreciated!

Thanks

---

<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:** [June 15, 2022, 10:25am UTC](https://community.hubspot.com/t/using-the-same-form-on-multiple-pages/59082/2 "2022-06-15T10:25:49Z")

</div>

Hi @JanakD,

As far as I know, different redirects based on the page the form is embedded on are currently not possible. You would have to create separate forms.

Best regards!

---

<div class="post-metadata">

**Author:** ![DebSchleede](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/debschleede/32/97637_2.png) [@DebSchleede](https://community.hubspot.com/u/DebSchleede)\
**Post date:** [August 11, 2022, 2:36pm UTC](https://community.hubspot.com/t/using-the-same-form-on-multiple-pages/59082/3 "2022-08-11T14:36:02Z")

</div>

It’s possible to change many things about forms via the embed code. [https://legacydocs.hubspot.com/docs/methods/forms/advanced\_form\_options](https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options)

Have custom “Thank You” redirects per landing page via editing HTML on your form embedd code by altering

| _redirectUrl_ |
| --- |

As for tagging the page …

**For Hubspot Landing Pages:** The Form Submit activity does tag both the form and the page. You can see it on Contact pages, use it in Workflows, etc. (see image)

 ![Screen Shot 2021-01-04 at 10.22.32 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/3/53638f02c9cbb110596a0da2d4047c0acae07b33.png)

**For External Landing Pages:**

You can do this with a Hidden Field and editing custom embed code like above.

1. Add a hidden field to the form to capture the URL.
2. Edit your custom embed code. Use Javascript to grab the URL of the page the visitor is on -- I use

| _window.location.href_ |
| --- |

1. Edit the custom embed code to input that URL value into the Hidden Field on your Hubspot form

---

<div class="post-metadata">

**Author:** ![kvlschaefer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kvlschaefer/32/71076_2.png) [@kvlschaefer](https://community.hubspot.com/u/kvlschaefer)\
**Post date:** [August 11, 2022, 7:43pm UTC](https://community.hubspot.com/t/using-the-same-form-on-multiple-pages/59082/4 "2022-08-11T19:43:14Z")

</div>

Thanks for sharing, @DebSchleede!

---

<div class="post-metadata">

**Author:** ![Clemencedlb](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Clemencedlb](https://community.hubspot.com/u/Clemencedlb)\
**Post date:** [May 16, 2023, 9:36pm UTC](https://community.hubspot.com/t/using-the-same-form-on-multiple-pages/59082/5 "2023-05-16T21:36:39Z")

</div>

thank you for sharing this.

Could you please share what would be the required code to add the page URL in the Javascript?  
I added a hidden custom property called “from\_conversion\_url” and am hoping to populate the page URL upon form submission  
Thank you!
