function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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

My code:

<apex:inputField value="{!Engage_Member__c.Confirmed_NPI__c}" id="confirmedNPINumber"/>
 <apex:outputText value="{!TEXT(riskProfile.Attributed_NPI__c)}" id="attrNPINumber" />
Hi MegmooPDX, When we use Inputfield it basically obeys the properties that were defined in Salesforce. I do not think there is any way outofbox to override this functionality without using alternatives.

The only alternative would be to use inputtext and parse the value to number in your controller. 

Hope this helps !!