Productivity Tools

soheilhs
Membro

how to insert a token to a link as a hyperlink in templates

resolver

Hello Everyone,

I was wondering if we could add a personalized token, for instance, {{email}} to a link and then add it as a hyperlink in a template. 

For instance, instead of clicking here 😆 link.com
I want to show Click here, where I added the email into the link.com string.

Can anyone guide me on this?

0 Avaliação positiva
1 Solução aceita
karstenkoehler
Solução
Membro do Hall da Fama | Parceiro
Membro do Hall da Fama | Parceiro

how to insert a token to a link as a hyperlink in templates

resolver

Hi @soheilhs,

 

Yes, that's possible. The syntax for a spelled personalization token is:

 

{{ object.internal_label_of_property }}

 

For example, for the email address field, this would result in: {{ contact.email }}

(You can find the internal label in the property settings. Open a property, then click the </> next to the name.)

 

If you want to create a mail-to link now, those always start with: mailto:

 

Resulting in a mailto:{{ contact.email }}

 

Adding this to a hyperlink field would be the approach here. HubSpot tries to recognize mailto links and sometimes does not accept parameters to such a link type that are not a spelled out email address. After adding the above, it's just stripped away or simply not accepted. If you run into this issue, there unfortunately isn't anything you can do about it.

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

Exibir solução no post original

5 Respostas 5
Simon2992
Participante

how to insert a token to a link as a hyperlink in templates

resolver

I have the same problem. {{ and }} for any token in the URL are replaced with %7B%7B and %7D%7D when applying the link.

I suspect this is caused by encoding the URL before using the template (and replacing the token with its value).


Initialy filled:

Simon2992_1-1698058029605.png

 

Clicked again:

Simon2992_2-1698058053026.png

The function to insert links in templates is not usable in this way. Is there a workaround?

0 Avaliação positiva
SCollins28
Membro

how to insert a token to a link as a hyperlink in templates

resolver

I'm having the same problem. The only difference I've identified is that this is Hubspot marketing and I'm trying to do this on Hubspot sales, are you also using Hubspot sales? 

0 Avaliação positiva
karstenkoehler
Solução
Membro do Hall da Fama | Parceiro
Membro do Hall da Fama | Parceiro

how to insert a token to a link as a hyperlink in templates

resolver

Hi @soheilhs,

 

Yes, that's possible. The syntax for a spelled personalization token is:

 

{{ object.internal_label_of_property }}

 

For example, for the email address field, this would result in: {{ contact.email }}

(You can find the internal label in the property settings. Open a property, then click the </> next to the name.)

 

If you want to create a mail-to link now, those always start with: mailto:

 

Resulting in a mailto:{{ contact.email }}

 

Adding this to a hyperlink field would be the approach here. HubSpot tries to recognize mailto links and sometimes does not accept parameters to such a link type that are not a spelled out email address. After adding the above, it's just stripped away or simply not accepted. If you run into this issue, there unfortunately isn't anything you can do about it.

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

JEllisIII
Membro

how to insert a token to a link as a hyperlink in templates

resolver

Trying to setup a Template with a token and I can't get it to take.

When dropping the url text directly in the form and adding the token in the correct space it works, but when using the Edit Link feature the token isn't working, with and without the %20 representation for a space.

 

What are we doing wrong?

JEllisIII_1-1689601977353.png

 

 

soheilhs
Membro

how to insert a token to a link as a hyperlink in templates

resolver

Thank you for the input. It worked 😉

0 Avaliação positiva