You need to sign in to do that
Don't have an account?
![Esther Thomas 2 Esther Thomas 2](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
visualforce email template merge field formatting question
Hi There,
I have a VF email template with some merge fields. One in particular is a formual field that should return a currency. It shows up properly in my record detail page, however in the template it's missing the second decimal place holder. Instead of $90.00 it shows up in the email as $90.0.
Any suggestions on how to fix this formatting issue? Thanks.
![User-added image](/forums/servlet/rtaImage?eid=9060G0000005Twy&feoid=Body&refid=0EM0G0000003Jba)
![User-added image](/forums/servlet/rtaImage?eid=9060G0000005Twy&feoid=Body&refid=0EM0G0000003Jbf)
I have a VF email template with some merge fields. One in particular is a formual field that should return a currency. It shows up properly in my record detail page, however in the template it's missing the second decimal place holder. Instead of $90.00 it shows up in the email as $90.0.
Any suggestions on how to fix this formatting issue? Thanks.
<messaging:emailTemplate subject="Congratulations on your booking" recipientType="Contact" relatedToType="Booking__c"> <messaging:htmlEmailBody > <html> <body> <apex:image id="logo" value="https://c.na78.content.force.com/servlet/servlet.ImageServer?id=0151N000003mGyc&oid=00D1N000001DEQc"/> <p>Congratulations!</p> <p>You have a new booking {!recipient.FirstName}</p> <p>Your client is {!relatedTo.Client__r.First_Name__c} </p> <p>Total Payment: {!relatedTo.Total_Price__c}</p> </body> </html> </messaging:htmlEmailBody> </messaging:emailTemplate>
Use something like below