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
smith indiasmith india 

how to accept only numbers in text field on a vf page


write validation rule on text field. IsNumber(textfield__c);


You can make use pattern and matching class in Apex


Pls refer the link, it might be helpful




If it solves your Issue, please mark it as solved so that other can get benefited from this.