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

1 Answer 1

4

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .