What the person is doing
The service may need a phone number for appointment changes, emergency contact, support callbacks, account recovery, SMS codes, delivery calls, two-way contact, or official records.
Application · lesson 10 of 34 · Input And Data Entry
Underlying principle: An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
Use a telephone-specific field that states why and what type of number is needed, accepts familiar formatting, preserves display values, validates enough to prevent obvious errors, stores a dialable canonical value separately, offers other contact methods, reviews the value before use, and confirms access only for flows that require it.
An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
The service may need a phone number for appointment changes, emergency contact, support callbacks, account recovery, SMS codes, delivery calls, two-way contact, or official records.
Use a telephone-specific field that states why and what type of number is needed, accepts familiar formatting, preserves display values, validates enough to prevent obvious errors, stores a dialable canonical value separately, offers other contact methods, reviews the value before use, and confirms access only for flows that require it.
Initial state with label naming the needed number type, purpose hint, type tel, autocomplete tel, and contact-choice wording.
Why does this service need a phone number, and can users choose another contact method?
Users can type, paste, autofill, edit, select, undo, and correct the phone value through native input behavior.
The service may need a phone number for appointment changes, emergency contact, support callbacks, account recovery, SMS codes, delivery calls, two-way contact, or official records.
Open the working example, try its controls, and compare the behavior against the decision guidance.
The service may need a phone number for appointment changes, emergency contact, support callbacks, account recovery, SMS codes, delivery calls, two-way contact, or official records.
Use a telephone-specific field that states why and what type of number is needed, accepts familiar formatting, preserves display values, validates enough to prevent obvious errors, stores a dialable canonical value separately, offers other contact methods, reviews the value before use, and confirms access only for flows that require it.
Initial state with label naming the needed number type, purpose hint, type tel, autocomplete tel, and contact-choice wording.
The phone number is stored as a numeric value and loses a leading zero.
Use a visible label and hint that state the number type, purpose, and any contact timing.
GOV.UK Design System - checked
GOV.UK supports needed-only collection, contact choice, clear UK/international/mobile labels, purpose text, type tel, autocomplete tel, specific errors, familiar formats, avoiding masks, and avoiding confusing reformatting.
Office for National Statistics - checked
ONS supports clear phone-number type, why and when contact may happen, familiar formats, format help, and field-level errors.
MDN Web Docs - checked
MDN supports telephone input semantics, mobile telephone keyboards, fallback to text input, and no automatic global phone-format validation.
WHATWG - checked
WHATWG supports the HTML Telephone state for type tel inputs.
MDN Web Docs - checked
MDN supports tel autocomplete and component tokens for split telephone number fields.
International Telecommunication Union - checked
ITU E.164 supports international telephone numbering and the 15-digit maximum international number length.
Source trail checked: