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

How do I reference a merge field containing a url as link in visualforce email template?

I have a visualforce email template that needs to read 'for more information click here'

The link is dynamic depending on the record that produces the email so the url is saved in a merge field on the record but when referencing this its not a clickable link:

You can find out more information <a href="{!relatedTo.Customobject__r.custom_url_field__c}"><strong><span style="font-size: 16px; font-family: Arial;"><strong style="font-weight: 700; color:black; font-family: Arial; font-size: 15px; text-decoration-style: underline; text-decoration-color: black !important;"><span style="font-size: 16px; font-family: Arial;">here</span></strong></span></strong></a></p>
ShirishaShirisha (Salesforce Developers) 
Hi SazEast,


I would suggest you to try without using the href since the field itself is the link which should be clickable.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri