Lead Capture Tools

JBradfield
Participant

Define properties based on URL

SOLVE

Just wondering if anyone has a solution for me that will be easier to implement than creating hundreds of identical forms...

 

We use separate pages on our site to promote the various products that we offer. Each one has a basic HubSpot form embedded at the bottom of the page so that people can leave a few contact details and drop into our deals pipeline. It's an identical form in every case, so I've just created one form that is embedded on multiple pages.

 

I really want to be able to update properties and deal information based on what page someone was on when they filled out the form. Similar to what you can do with query strings (https://knowledge.hubspot.com/forms/can-i-auto-populate-form-fields-through-a-query-string), but using the part of the path after the trailing slash instead.

 

EXAMPLE: John fills out an embedded form on "www.website.com/products/product1", and Jane fills out the same form on "www.website.com/products/product2". Both enquiries trigger the same workflow that creates a new deal, but the Sales team can see that John is interested in product 1 and Jane is interested in product 2 by looking at the deal properties.

 

Is there any way to do something like this without having to create a unique form for each product?

0 Upvotes
1 Accepted solution
Olivia_Bagnall
Solution
Guide | Platinum Partner
Guide | Platinum Partner

Define properties based on URL

SOLVE

@JBradfield I would say the best way to achieve this is either

1) Different forms with hidden fields on each page
OR
2) A workflow with complex branch logic. ie - if form is submitted on URL X then set deal property to Y. 

Forms can't populate fields from the URL unless you have it in a query string format. 

Would it be possible to add query strings to the end of your page urls so instead of www.website.com/products/product2  it could be www.website.com/products/product2?productname=product2

 

If you would be interested in exploring alternative solutions using custom development, myself and my team could certainly work with you on that to. 


 

 

Olivia Bagnall

Inbound Consultant and Project Manager

Baskey

 
 
 
o.bagnall@baskey.eu
www.baskey.eu
Rheingasse 14, 50676 Köln
 
 
 

View solution in original post

3 Replies 3
Olivia_Bagnall
Solution
Guide | Platinum Partner
Guide | Platinum Partner

Define properties based on URL

SOLVE

@JBradfield I would say the best way to achieve this is either

1) Different forms with hidden fields on each page
OR
2) A workflow with complex branch logic. ie - if form is submitted on URL X then set deal property to Y. 

Forms can't populate fields from the URL unless you have it in a query string format. 

Would it be possible to add query strings to the end of your page urls so instead of www.website.com/products/product2  it could be www.website.com/products/product2?productname=product2

 

If you would be interested in exploring alternative solutions using custom development, myself and my team could certainly work with you on that to. 


 

 

Olivia Bagnall

Inbound Consultant and Project Manager

Baskey

 
 
 
o.bagnall@baskey.eu
www.baskey.eu
Rheingasse 14, 50676 Köln
 
 
 
JBradfield
Participant

Define properties based on URL

SOLVE

Thanks Olivia - how would you recommend creating the workflow logic? I thought about using the contact property 'last page seen' and stating that the url must contain the phrase after the slash, but wasn't sure if this would give me the result I want 100% of the time?

0 Upvotes
Olivia_Bagnall
Guide | Platinum Partner
Guide | Platinum Partner

Define properties based on URL

SOLVE

@JBradfield If you are using non-HS forms then you would. need to use the 'recent conversion' property. If using HubSpot forms you could use the form submission workflow filter and then the drilldown of 'what page was the form submitted on'.