You need to sign in to do that
Don't have an account?
SazEast
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>
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>
Greetings!
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