We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Dec 5, 2016 10:16 AM
I have a client who wants to:
I’m under the impression that unless someone has visited the site and submitted a form, there’s no way to have the contact form pre-populated. Is this correct, or am I misunderstanding how the cookies/UTK works?
Dec 5, 2016 10:34 AM
Hi @heatherthedev,
You wouldn’t be able to rely on a cookie to do this pre-population, but you could include the email address in the linked URL.
HubSpot forms will pull a value from the URL query string in a name=value pair format and insert the value into a form field, as long as the ‘name’ component exactly matches a form field. The URL can be customized using personalization tokens.
So, in the email editor, you would create a link like:
<a href="http://www.domain.com/page?email={{contact.email}}">click here</a>
The {{ contact.email }} token would personalize for ever contact. When they hit the landing page, the email field on the form would auto-fill with the query string data. You could repeat this with any contact propery, such as first name and last name.
One note: On second visit however, the cookies should be tied to the individual contact, assuming that the portal has email identity tracking turned on.