[SalesForce] Formatting custom field values in email template

Is it possible to re-format custom field values in a mail merge HTML template in Salesforce? Like to remove a dollar sign, or the cents in a dollar amount?

Best Answer

While it's not officially documented, I believe you can use many Visualforce functions in email templates. You just have to manually write the function syntax.

For example, the following plain text email template will produce the output shown in the preview below.

{!Contact.FirstName}
{!LOWER(Contact.FirstName)}
{!UPPER(Contact.FirstName)}

Contact Name email template preview

Related Topic