Visualforce - FAQ

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