Replace the three boxes with one labelled field that accepts a number typed or pasted in any format, with spaces, dashes, brackets or an extension. Never move the cursor on its own, and tidy the format afterwards.

Three boxes and a moving cursor

A quote form asks for a phone number in three small boxes: three digits for the area code, three for the exchange, four for the rest. Brackets and a dash sit between them as plain text.

Type the third digit and the cursor jumps to the next box by itself. Paste a number copied from an email, and only its first three digits land, in the first box.

To whoever built it, the form looks tidy and helpful. To many visitors it is a small obstacle at the moment they were about to ask for a price.

The same layout turns up on booking and sign-up forms too, copied from one template to the next.

What each visitor meets

None of these visitors is rare, and one busy person can meet three of the problems on a single form.

The form was probably tested by someone typing a number slowly, digit by digit, which is the one way of using it that always works.

The jump to the next box

The automatic jump is a small script that moves the cursor once a box holds three digits. People who look at their keyboard while typing never see it happen.

They press Tab, as on any other form, and land one box further on. Or they spot a wrong digit and press Backspace, and nothing happens, because the cursor has already left the box with the mistake.

WCAG 2.0, the international accessibility guidelines, says typing in a field should not carry the visitor somewhere else without warning. A cursor that leaves on its own does exactly that.

Three fields with no names

A form field needs a label tied to it in the code, so screen reading software can announce what belongs there. The three boxes usually share one visible word, Phone, attached to the first box or to none.

The second and third boxes are then announced as blank edit fields. The brackets and dash between them are text the software may read aloud, skip, or announce in the wrong place.

Hidden labels can fix the naming, but not the jump, the pasting or the missing room for an extension.

Pasted and saved numbers

Many people copy their number from an email signature, or let the browser fill in details it has saved. Both expect a single phone field.

When the first box accepts only three characters, a pasted number is cut short without warning. Browsers that fill in forms may put the whole number in that first box, where it is trimmed, or skip the field.

Dictated numbers arrive the same way, all at once, and meet the same three-character limit.

A worked example

An anodising shop in Kitimat finishes metal parts for machine shops, equipment makers and a few hobbyists, and takes most new work through a quote form on its website.

The form split the phone number into three boxes with an automatic jump. A buyer emailed to say the form had kept only his area code, and the office then found several other quote requests with partial numbers.

The three boxes became one field labelled Phone number, with a note that an extension is welcome.

It accepts spaces, dashes, dots, brackets and a plus sign, and the cursor stays put until the visitor moves it.

On phones the field brings up the number keypad, because the code marks it as a telephone field. The office tidies each number into one format when it enters the quote in its job system.

Every way a number arrives, typed, pasted, filled in by the browser or dictated, ends up whole in one field, and the tidying is done by the office rather than the visitor.

One field that accepts any format

Give the field a visible label, tied to it in the code, and make it wide enough to show a full number with an extension.

Accept what people type. Test only for a reasonable count of digits, and let the software strip out the spaces and brackets afterwards.

Leave the field optional unless you truly need a number. A visitor who prefers email should not have to invent a phone number to send the form.

If something is wrong, say what in words beside the field, and keep everything else the visitor has already typed.

Testing the form yourself

Fill in the form using only the keyboard: Tab, Shift and Tab, Backspace and Enter. Then paste a number with an extension, and try the whole form on a phone.

Watch where the cursor sits after every key. If it ever moves without a press of Tab or a tap, the form is still making decisions for the visitor.

If someone you know uses a screen reader, ask them to try it and tell you what they hear at each field.

The counter-case

Some office systems store numbers in three parts. That is a reason to split the number after the form is sent, in the software, not a reason to make visitors do it.

Three properly labelled boxes with no automatic jump are usable, if clumsy for pasted numbers and extensions, and some forms have worked that way for years without complaint.

Still, one field does everything the three boxes do, with less code and fewer ways to fail, so it is the better choice whenever the form is being changed anyway.

One field for the number

  1. Replace the three boxes with one phone field.
  2. Label it visibly and in the code.
  3. Mark it as a telephone field for phone keypads.
  4. Remove the automatic jump and any length limit.
  5. Accept spaces, dashes, brackets and extensions.
  6. Tidy the format once the form arrives.
  7. Test with a keyboard, a pasted number and a phone.

Step four removes the two faults that lose numbers outright. A three-character limit cuts pasted numbers short, and the jump sends corrections to the wrong box.

Dates, which people do think of in three parts, are a different case, and why three plain boxes with the format shown beside them beat long lists is explained in birth dates picked from three long drop-down lists.


Frequently asked questions

Why is a split phone number field a problem?

The automatic jump moves the cursor unexpectedly, the extra boxes often have no labels for screen readers, and a pasted number fills only the first box.

What is wrong with the automatic jump?

People who watch the keyboard do not see it. They press Tab and skip a box, or press Backspace and find the cursor no longer where the mistake is.

How should a single phone field be labelled?

With a visible label such as Phone number, tied to the field in the code so screen reading software announces it, plus a note that extensions are welcome.

Should the field force one format?

No. Accept spaces, dashes, dots, brackets and extensions as typed. Confirm only that the number has a plausible count of digits, then let the software reformat it.

How do I bring up the number keypad on phones?

Mark the field in the code as a telephone field. Current iPhones and Android phones then show the number keypad when a visitor taps into it.

What if our office system stores numbers in parts?

Let the software split the number after the form is sent. Visitors should type a number the way they know it, not the way a database stores it.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Phone number spread across three boxes?

Send us your quote form's address, and we will rebuild its phone field and test it with a keyboard and a phone.

Start a Conversation