Contact Number validation

0
How do we add validation rule for contact number but it’s should contain 10 digits.
asked
1 answers
1

Hi Lakshmipathi,

You can use the Regex, in the validations:

@"^[0-9]{10}$"

It will make sure to validate 10 numbers.

 

Hope it helps!

answered