eddyrcabrera79
Member
Hi,
I have a Textbox called PhoneNumber and I want to be able only to enter the phone number in this format ###-###-#### and if for some reason I enter a letter or another symbol I want to receive a notification saying "Please enter numbers only"
I was trying to put together 2 codes and so far, it allows me to enter only phone numbers and I receive a notification.
This is what is not working for me:
when I type the first 3 numbers, it is fine, as soon as the symbol (-) gets populated by itself its telling me to enter numbers only.
1 - How do I fix this code in order to let me enter numbers only and I don't receive a notification when the symbol (-) gets populated automatically
I attached a sample document .
Thank you
I have a Textbox called PhoneNumber and I want to be able only to enter the phone number in this format ###-###-#### and if for some reason I enter a letter or another symbol I want to receive a notification saying "Please enter numbers only"
I was trying to put together 2 codes and so far, it allows me to enter only phone numbers and I receive a notification.
This is what is not working for me:
when I type the first 3 numbers, it is fine, as soon as the symbol (-) gets populated by itself its telling me to enter numbers only.
1 - How do I fix this code in order to let me enter numbers only and I don't receive a notification when the symbol (-) gets populated automatically
I attached a sample document .
Thank you