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).
Mar 29, 2022 4:28 AM
I'm trying to add a personalization token in a link to a form. I'm having trouble with spaces in the content that gets put into the token.
My link: https://share.hsforms.com/1LJPooqc6QhWLDBP?email={{contact.email}}&firstname={{contact.firstname}}&name={{company.name}}&lastname={{contact.lastname}}
What Hubspot makes of it: https://share.hsforms.com/1LJPooqc6QhWLDBP?email=abc@cdf.com&firstname=Test&name=T & Test GmbH&lastname=XX
The URL gets cut off after the blank space - there should be a %20 to ensure the URL is all in one string.
This problem occurs with all properties that have content with 2 or more words.
Anyone else having this issue and maybe know how to solve it?
Solved! Go to Solution.
Mar 29, 2022 6:12 AM
Hi @Alexrott,
The personalization tokens in your internal email are creating plain text, not a link. (An email client or browser will try to recognize a link from plain text, but it's still plain text.)
I'd recommend spelling out "Antrag prüfen" and then using the link icon to add a hyperlink to "Antrag prüfen". In there, you won't have the option to pick a personalization token but you can follow the syntax that you're already familiar with: {{ object.internalpropertyname}}
Let me know if you have any follow-up questions!
Karsten Köhler |
![]() | Did my post help answer your query? Help the community by marking it as a solution. |
Mar 29, 2022 6:02 AM
Hi @karstenkoehler,
thanks for the quick reply.
The Token is used within a hyperlink: My link: https://share.hsforms.com/1LJPooqc6QhWLDBP?email={{contact.email}}&firstname={{contact.firstname}}&name={{company.name}}&lastname={{contact.lastname}}
The link is placed inside a internal Email that gets triggered in a workflow. See picture attached (it's in German, but I guess that's fine for you 🙂
Mar 29, 2022 6:12 AM
Hi @Alexrott,
The personalization tokens in your internal email are creating plain text, not a link. (An email client or browser will try to recognize a link from plain text, but it's still plain text.)
I'd recommend spelling out "Antrag prüfen" and then using the link icon to add a hyperlink to "Antrag prüfen". In there, you won't have the option to pick a personalization token but you can follow the syntax that you're already familiar with: {{ object.internalpropertyname}}
Let me know if you have any follow-up questions!
Karsten Köhler |
![]() | Did my post help answer your query? Help the community by marking it as a solution. |
Mar 29, 2022 6:25 AM
Thanks so much @karstenkoehler!, this solves it!
(now I have the next problem, which is: if there's a "&" in the content it gets cut off - but i guess this is unsolvable with how the URL is built)
Mar 29, 2022 5:12 AM
Hi @Alexrott,
On my end, this is working as intended, including added %20 for space characters. Could you confirm that you're using the personalization token within a hyperlink (see screenshot, alternatively with HTML href link tag) and not in plain text?
Best regards!
Karsten Köhler |
![]() | Did my post help answer your query? Help the community by marking it as a solution. |