0

I am formatting my field in my Visualforce Email Template. so when i am trying to do this it is giving me this error

Data type of Monthly CC Vol is currency

The value attribute on is not in a valid format. It must be a positive number, and of type Number, Date, Time, or Choice.

Here is my code

<apex:outputText value="{0,number,###,###.##}">
    Monthly CC Vol $:   <apex:param value="${!relatedTo.Deal_Name__r.Monthly_CC_Vol__c}"/> 
    </apex:outputText><br/>
2

1 Answer 1

1

Remove the $ outside from the value attribute.

   <apex:outputText value="{0,number,###,###.##}">
        Monthly CC Vol $:   <apex:param value="{!relatedTo.Deal_Name__r.Monthly_CC_Vol__c}"/> 
    </apex:outputText><br/>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .