Sencha Touch provides many type of validation such as Email, Exclusion, Format, Inclusion, Length and Presence Validation to validate your Form in appropriate manner. Now come to your question, To resolve this problem you can use Format Validation like as:
validations: [ { type: 'format', name: 'mobile', matcher: /^(\([0-9]{3}\) |[0-9]{3}-)[0-9]{3}-[0-9]{4}$/, message:"Wrong Format for Mobile Number"}, ] });
I hope it might be resolve your problem!!
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Can you answer this question?
Write Answer1 Answers