+ 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.