Well few days ago while working with a Visualforce page I came across a requirement of showing currency field using proper currency formatting.
For Example
For Example
- 6000 should appear as $6,000.00 in the vf page
After checking the standard Salesforce tags I was unable to find a solution. but somehow figured out that <apex:param> tag can be exploited here.
So do the currency formatting in a vf page you can use the below markup.
<apex:outputText value="${0, number, ###,###,###,##0.00}">
<apex:param value="{!Account.Amount__c}"/>
</apex:outputText>
Hoping this helps for your currency formatting need!
This works, thanks alot,,
ReplyDeleteThank you so much. Finally worked!
ReplyDeleteI used this in an inputText but not working , any workaround?
ReplyDeleteThanks
Hi,
ReplyDeleteI need same while input values, I am using apex: inputfield component. Help me out.
Hi,
ReplyDeleteI need same while input values, I am using apex: inputfield component. Help me out.
Hi,
ReplyDeleteI need same while input values, I am using apex: inputfield component. Help me out.
Hi ,
ReplyDeleteHow to display it in french format something like this $6 000,00 where the separator is space and comma
Did you managed to do that?
DeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
DeleteHi Everyone,
ReplyDeleteTo get currency, you can also
Hope this help