You need to sign in to do that
Don't have an account?
suppress commas in an inputtext field in VF page
Is there a way to supress the display of commas within a number field when the field is an inputtext field on a Visualforce page?
I can remove it on the output text field, but can't figure out a way to do it on the inputtext field:
![User-added image](/forums/servlet/rtaImage?eid=906F0000000A1PR&feoid=Body&refid=0EMF0000000QFu9)
My code:
<apex:inputField value="{!Engage_Member__c.Confirmed_NPI__c}" id="confirmedNPINumber"/>
<apex:outputText value="{!TEXT(riskProfile.Attributed_NPI__c)}" id="attrNPINumber" />
I can remove it on the output text field, but can't figure out a way to do it on the inputtext field:
My code:
<apex:inputField value="{!Engage_Member__c.Confirmed_NPI__c}" id="confirmedNPINumber"/>
<apex:outputText value="{!TEXT(riskProfile.Attributed_NPI__c)}" id="attrNPINumber" />
The only alternative would be to use inputtext and parse the value to number in your controller.
Hope this helps !!