Input mask & Default value

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
 
M

Mike Painter

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.
 
D

Douglas J. Steele

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)
 
V

Volta

Input Mask "(618) "999\-9999

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top