Input mask & Default value

  • Thread starter Thread starter Kiyeon
  • Start date Start date
K

Kiyeon

I put an input mask of !\(999") "000\-0000;;_ for the phone number field.
Can I make the default value for the phone number to have the same area code
(i.e. (618) - ) so I don't have to type that in every time?
Thanks in advance.

ky
 
Kiyeon said:
I put an input mask of !\(999") "000\-0000;;_ for the phone number field.
Can I make the default value for the phone number to have the same area code
(i.e. (618) - ) so I don't have to type that in every time?
Thanks in advance.
You can with a bit of code but your users will hate you.
Make the area code a separate field.

If you must have an edit mask (I hate the things) then teach your users to
click on the label and they will not have to fight with the cursor when they
click into a field.
 
To be honest, I usually store the area code as a separate field from the
phone number. I find that makes it easier to handle changes to area codes
(which seems to be happening more and more frequently these days)
 
Input Mask "(618) "999\-9999

The default does not appear until you start typing into field.
 
Back
Top