You need to sign in to do that
Don't have an account?
Esther Thomas 2
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.
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>
Raj Vakati
Use something like below