function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amber JonesAmber Jones 

Lookup Field (Hyperlink) in Email Template - Remove HTML <a href> from message.

I have a lookup field that is formatted as a hyperlink. This is fine on the page layout, but when I try to use the field in an email template, instead of the text, I get the text surrounded by the <a href> tag in the body of the message. I do not need or want the link in my email notification. I just want the text that appears in the field to appear on the message. Is there a way I can do this without creating a duplicate field on the object?
Raj VakatiRaj Vakati
You can do it simply .. 

Instead of using the Lookup Field (Hyperlink)  value in email template .. use the reference value in email temple to Lookup Field.Name 

Like below 

LookField__r.Name instead of the formula field 
Amber JonesAmber Jones
Thank you, though I'm not sure that I completely follow your response. If this is the Merge Field, what would it look like as a reference value?

{{{ENT_ABC_Reporting__c.ABC_Loan__c}}}
Raj VakatiRaj Vakati
Yes .. like below


 
{{{ENT_ABC_Reporting__c.ABC_Loan__r/Name}}}

Instead of using the Hyperlink formula field in your email template .. use the formula which refers to the same value as a text instead of a hyperlink 

If Your hyperlink is Hyperlink (Accounts__r.Id) .. user just Accounts__r.Id in you email merge syntax