Lead Capture Tools

TShannon3
Member

UTM Parameters and Hidden Form Fields

SOLVE

Are utm parameters in a URL the only way to pass data to hidden form fields?

 

I have a client who has a dynamic event registration flow in Wordpress. A user types in their zip code, is presented with a list of events nearby. Then they select the event they want to attend and are presented with a HubSpot Form for Registration. I need the hidden fields in the form to capture the event location, date, and time that they selected.

 

I imagine this can be accomplished with utm parameters in the url, but are they other ways--for example using JS--to pass data into a hidden form field?

 

Thanks!

0 Upvotes
1 Accepted solution
matthew-aire
Solution
Contributor

UTM Parameters and Hidden Form Fields

SOLVE

Hi @TShannon3 

 

Definitely you can add this via UTMs in a URL. This can also be done using JS, please review this code here.

 

Let me know how it goes!

 

Many thanks,

 

LinkedIn Profile Photo (1).png

Matt Aire
HubSpot Freelancer | Founder @ pocketpros

Let's chat HubSpot - book a meeting

 

👌 If my reply was useful and helped answer your question, please mark it as a solution to help the community!

View solution in original post

0 Upvotes
2 Replies 2
matthew-aire
Solution
Contributor

UTM Parameters and Hidden Form Fields

SOLVE

Hi @TShannon3 

 

Definitely you can add this via UTMs in a URL. This can also be done using JS, please review this code here.

 

Let me know how it goes!

 

Many thanks,

 

LinkedIn Profile Photo (1).png

Matt Aire
HubSpot Freelancer | Founder @ pocketpros

Let's chat HubSpot - book a meeting

 

👌 If my reply was useful and helped answer your question, please mark it as a solution to help the community!

0 Upvotes
PamCotton
Community Manager
Community Manager

UTM Parameters and Hidden Form Fields

SOLVE

Hey @TShannon3, Happy Friday!

 

HubSpot allows you to create custom properties (fields) within your form. You can configure these fields to be hidden and then populate them with values using HubSpot’s built-in functionality. 

 

To our top experts, @Anton and @matthew-aire any recommendations for @TShannon3 matter?

 

Thank you,

Pam

Você sabia que a Comunidade está disponível em outros idiomas?
Participe de conversas regionais, alterando suas configurações de idioma !


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !




0 Upvotes