Is there any method to validate correct mobile numbers?

Hello Team,

We have got multiple forms where mobile number is required.

For email field anywhere a validation is being done, system is coming up with an error if we key in incorrect format of email, but for mobile numbers it is accepting even a single digit as number.

Shall we have any small validation for cell_number everywhere which justifies 10 digits and then accepts data entry.



There is no any such in built validation for mobile email id.
you will have to use regular expression for checking valid mobile number.

For Ex. var phoneno = /^\d{10}$/;

1 Like

any way to validate mobile number with 10 or 12digit only not 11.

Yes there is. Check this link to documentation