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

sai.sfsai.sf

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

craigmhcraigmh
Gunners_23Gunners_23

You can make use pattern and matching class in Apex

 

Pls refer the link, it might be helpful

 

http://salesforcesource.blogspot.in/2010/01/utilizing-apex-pattern-and-matcher.html

 

 

 

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