CMS Development

Klaasie
Member

Fill hidden form text-field with for instance module.title

SOLVE

When you have a landing page with a form on it, can you fill the form with a variable/value from lets say a module on the page. So when I have a Title on the page called: 'Hubspot course - June 2020'. Can I use the value of the title in a hidden field?

0 Upvotes
2 Accepted solutions
psdtohubspot
Solution
Key Advisor

Fill hidden form text-field with for instance module.title

SOLVE

Hi @Klaasie 
It's possible you need some knowledge of Jquery you 

Look here   https://developers.hubspot.com/manipulating-forms-with-jquery 
Manipulating forms with jQuery

And here https://knowledge.hubspot.com/forms/pass-contact-property-values-with-hidden-form-fields Pass contact property values with hidden form fields

Let me know if any questions. 


Thanks!
Ajit

 

 

View solution in original post

Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Fill hidden form text-field with for instance module.title

SOLVE
3 Replies 3
Klaasie
Member

Fill hidden form text-field with for instance module.title

SOLVE

Thank you @psdtohubspot and @Kevin-C . I already found some parts and will dive further into your suggestions. I'm thinking about splitting a title so I can use the title of the course and the date. So when the Title is: Training - Hubspot course - 17th June 2020.
Then I want to split it in 'Hubspot Course' and '17th June 2020' and send it to a property course_title and course_date. After that I can use it in an email.

0 Upvotes
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Fill hidden form text-field with for instance module.title

SOLVE

Hey @Klaasie 

 

This isnt took far from @psdtohubspot response, just a nother potential option. See link:

https://knowledge.hubspot.com/forms/can-i-auto-populate-form-fields-through-a-query-string

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
psdtohubspot
Solution
Key Advisor

Fill hidden form text-field with for instance module.title

SOLVE

Hi @Klaasie 
It's possible you need some knowledge of Jquery you 

Look here   https://developers.hubspot.com/manipulating-forms-with-jquery 
Manipulating forms with jQuery

And here https://knowledge.hubspot.com/forms/pass-contact-property-values-with-hidden-form-fields Pass contact property values with hidden form fields

Let me know if any questions. 


Thanks!
Ajit