---
title: "US Phone number validation in sencha touch"  
description: "US Phone number validation in sencha touch"  
author: "Anonymous User"  
published: 2013-06-11  
updated: 2013-08-06  
canonical: https://www.mindstick.com/forum/1022/us-phone-number-validation-in-sencha-touch  
category: "sencha touch"  
tags: ["sencha touch"]  
reading_time: 1 minute  

---

# US Phone number validation in sencha touch

Hi [Developers](https://www.mindstick.com/articles/12875/blunders-you-must-avoid-while-hiring-java-developers-to-get-the-best-fulfilling-your-needs),\
I have created [employee](https://www.mindstick.com/articles/85431/remote-employee-training-tips-tricks) information [form](https://www.mindstick.com/forum/6/multi-form-mfc-application) in [sencha touch](https://www.mindstick.com/interview/23004/define-class-system-of-sencha-touch) as following [structure](https://www.mindstick.com/articles/23258/choose-your-business-structure-wisely)\
Emp IdEmp NameEmp AddressEmp [Email](https://www.mindstick.com/articles/12870/10-easy-ways-to-manage-your-business-email-inbox) IdEmp [Mobile](https://www.mindstick.com/articles/310668/reasons-why-you-should-choose-custom-mobile-app-development-for-your-business)\
My [Problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) is, I want to [validate](https://www.mindstick.com/forum/1490/what-is-better-solution-for-validate-form-textboxs-value) US Mobile number.Please help.Thanks in advance.

## Replies

### Reply by Anonymous User

Hi Jeet Verma,Sencha [Touch](https://www.mindstick.com/forum/34099/how-to-customize-selected-fields-in-a-list-in-sencha-touch-app) 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!!


---

Original Source: https://www.mindstick.com/forum/1022/us-phone-number-validation-in-sencha-touch

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
