2

I have a RTF with html code in it:

<button>Click Me</button>

When I create an HTML Email template and use the merged field:

{!Object.Field__c}

The output in the template is simply:

<button>Click Me</button>

Where if I type the html in to the template directly it works.

It there any way to pull in a mergeField containing HTML and have it display as if it was typed into the template?

When using a VF Template it still outputs like this:

enter image description here

3

If you use a Visualforce Email Template, you can use <apex:outputText value="{!Object.Field__c}" escape="false"/>

You cannot do it without using a Visualforce Email Template

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.