Form Field Phone Number

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to require a full phone number input in a form? ###-###-####
 
You can create 3 fields, AreaCode, Exchange, Number and make them required.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Thanks Thomas. More help: When I set up the first field (area code) I set
the form field properties "width in characters" to 3 then set validate to min
3 / max 3. Is there any way to have the curser 'jump' to the next box after
the required 3 numbers?
 
set the Tab Order


| Thanks Thomas. More help: When I set up the first field (area code) I set
| the form field properties "width in characters" to 3 then set validate to min
| 3 / max 3. Is there any way to have the curser 'jump' to the next box after
| the required 3 numbers?
|
| "Thomas A. Rowe" wrote:
|
| > You can create 3 fields, AreaCode, Exchange, Number and make them required.
| >
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > WEBMASTER Resources(tm)
| >
| > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > ==============================================
| > To assist you in getting the best answers for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| >
| > | > > Is there a way to require a full phone number input in a form? ###-###-####
| >
| >
| >
 
Sorry Rob, I don't think I was clear. The form fields 'tab' OK in order
without setting the order (leave them blank) I was wondering if I can force
the curser to jump to the next field after entering the specified number of
digits. Example: after entering "941" in the area code box the curser would
jump to the prefix box. Is there a way to do that?
 
I have seen that on varies site, but I have never looked into how it was being done. I would assume
that custom JavaScript is being used to move the cursor to the next field after maximum number of
characters have been entered in the prior field.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
oh gotcha.
let's see if we can find a site that does it.


| Sorry Rob, I don't think I was clear. The form fields 'tab' OK in order
| without setting the order (leave them blank) I was wondering if I can force
| the curser to jump to the next field after entering the specified number of
| digits. Example: after entering "941" in the area code box the curser would
| jump to the prefix box. Is there a way to do that?
|
| "Rob Giordano (aka: Crash Gordon®)" wrote:
|
| > set the Tab Order
| >
| >
| > | Thanks Thomas. More help: When I set up the first field (area code) I set
| > | the form field properties "width in characters" to 3 then set validate to min
| > | 3 / max 3. Is there any way to have the curser 'jump' to the next box after
| > | the required 3 numbers?
| > |
| > | "Thomas A. Rowe" wrote:
| > |
| > | > You can create 3 fields, AreaCode, Exchange, Number and make them required.
| > | >
| > | > --
| > | > ==============================================
| > | > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > WEBMASTER Resources(tm)
| > | >
| > | > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > ==============================================
| > | > To assist you in getting the best answers for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | >
| > | > | > | > > Is there a way to require a full phone number input in a form? ###-###-####
| > | >
| > | >
| > | >
| >
 
Hi,
make the texbox like this
Area Code<input type="text" name="code"
onchange="if(this.value.length==3)this.form.NameOfNextField.focus();">
 

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

Back
Top