You need to sign in to do that
Don't have an account?

Visualforce: apex:inputText - restrict input to numbers only
when i enter that mobile number that sholud be a number like that but iam given text that showing error. How to solve the above scenario please give some ideas.
One way you could make this work is HTML5-ifying your Visualforce page and use <apex:input type="number" /> instead of apex:inputText.
https://developer.salesforce.com/forums?id=906F00000008mf8IAA
This can be done easily with Javascript also.
http://salesforce.stackexchange.com/questions/31641/visualforce-apexinputtext-restrict-input-to-numbers-only
Thanks
Anand