Sorry, we didn't find any relevant articles for you.

Send us your queries using the form below and we will get back to you with a solution.

How do I change the way a merged field is displayed in a Visualforce email template? It's not displaying as it is formatted in the field within Saleforce.

If a field is not displaying, use the following Apex formula. This will make the field display exactly as formatted for types such as date, currency, etc.

<apex:outputfield value=”{!mergedfiled}”/>

If you require a space, is the html code before

&nbsp;

See example below:

See also further information from Salesforce here

Updated at July 27th, 2024

Was this article helpful?