We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

force user to enter number that starts with a specific numbers

Hello syncfusion support,

I want a numeric text box that allow users to enter their phone numbers , but I need this number to start with a specific numbers like(71 or 03 ... ) and if not show red error under this text box (" phone number should start with 71 or 03").
in addition to mask this text box like this pattern ( mask: "99-999-999")

thanks in advanced;

1 Reply

AB Ashokkumar Balasubramanian Syncfusion Team August 7, 2019 04:31 PM UTC

Hi Ali Ossaily, 
 
Good day to you. 
 
For this scenario, we suggest use the MaskEdit component with jQuery validation to achieve your requirement. Could you please refer the below sample? 
 
 
Please check the above sample and get back to us, if you need any further assistance on this. 
 
Regards, 
Ashokkumar B. 


Loader.
Live Chat Icon For mobile
Up arrow icon