Form value auto populated via query string


Can Hubspot pass hubspot built-in form parameters using query string via form submission to external website?

Following this article:

I can use this sample URL and auto-populate the form in rich text link, which works.{{contact.firstname}}&CustLastName={{contact.lastname}}&CustEmail={{}}

but I am unable to use this URL to populate form value that customer entered to external website via form submission. The link working in rich text doesn’t work in form submission external URL.

Is there an option to prefill form values to external website from hubspot sites? Or we need to use Form API to do that?

Thanks in advanced


I have the same question. Would love to see a solution to that.


Hi @Jeromecollomb,

I'm not 100% clear on what this question is asking, but for context HubL personalization tokens (e.g. {{contact.firstname}} are evaluated server-side, so they can only be used on HubSpot hosted content. If you can give me some more info on what exactly you're trying to do, I might be able to help suggest an alternative.


Thanks @Derek_Gervais for answering.

My question is actually on this topic, and still can't find why it's not working.
If you could help, thanks a lot in advance!


Hi @Jeromecollomb,

I reached out on that topic instead:


Guys, @Derek_Gervais explains the solution there.