| UI or UX | UI + UX - Callable telephone contact capture field | UI + UX - Single-line freeform data-entry control | UI + UX - Fixed-format text entry control | UI + UX - Field-level validation feedback | UI + UX - Form recovery summary |
| UI guidance | Render phone entry as a labelled single-line field with number type in the label or hint, purpose and contact-timing text, type tel, autocomplete tel, field-specific errors, and review of both the user's displayed number and any dialable backend value. | Render a persistent label, appropriately sized single-line input, optional hint, visible focus state, and nearby error text that is programmatically associated with the field. | Show a persistent label, visible example or hint, fixed grouping, literal separators, and field-adjacent error text so users understand which characters are typed and which are supplied by the mask. | Render a labeled field with hint text, field-adjacent error text, invalid styling, preserved value, and corrected state. | Render a top-of-form summary block with heading, linked error list, and matching field-level error messages. |
| UX guidance | Use phone number entry when the product genuinely needs to call, text, verify, route, or recover contact with a user through a phone number. | Let users edit normally, validate after interaction or attempted submit, preserve their typed value after errors, and explain exactly how to fix invalid or missing text. | Use an input mask to help users enter data that has a stable character structure, especially when grouping matches the physical document, card, container code, or serial key users are copying from. | Help the person reach a clear task outcome. | Move users from the summary to the exact field, group, or first invalid control that needs correction. |
| Good UI | An appointment service asks for UK mobile or international phone number, says it will call only if the appointment changes, uses type tel and autocomplete tel, and shows the number for review before saving. | A reference-name field has a visible label, hint, medium width, focus ring, and error message beneath the hint when submitted empty. | A container number field shows the example ABCD 123456 7, groups pasted characters into that shape, and displays the raw value ABCD1234567 before submit. | Error text appears next to the field with readable spacing, persistent label, hint text, and the invalid value still visible. | Top-of-form summary with a clear heading, linked error list, and matching inline field messages. |
| Bad UI | The phone number is stored as a numeric value and loses a leading zero. | The only instruction is placeholder text that disappears when the user starts typing. | A phone field hard-codes a domestic mask and rejects valid international numbers. | Error message appears far from the field it describes. | Summary and field messages visually disconnected or contradictory. |
| Good UX | A user pastes 07700 900 982, sees it preserved, reviews that calls may go to that number, and can choose email instead. | A user leaves the required field blank, sees an error only after submit, returns to the same field, and their later typed value clears the error. | A user submits ABCD 123 and receives a precise error that the six-digit serial group and check digit are incomplete. | Validation appears after blur or submit when it helps correction. | After failed submit, focus or reading order makes the summary discoverable before users scan the form. |
| Bad UX | A user enters an extension for a desk phone, but validation strips it and the organization later calls the wrong line. | Validation fires on the first focus event and blocks typing before the user has had a chance to answer. | A user pastes a valid value with spaces and the mask discards characters because it only supports one-character-at-a-time typing. | Showing errors before users type. | Only showing errors below the fold. |
| Best fit | The product must capture a phone number for calls, texts, support callbacks, appointment changes, recovery, delivery coordination, verification, or contact records. | The answer is short and user-authored. | The value has a stable character pattern and users benefit from live grouping. | A single field has a specific correctable problem. | Form submission can produce one or more errors. |
| Avoid when | The product only needs a name, label, username, reference, or other short text. | The answer is a paragraph, comment, address block, or explanation requiring multiple lines. | Valid values have many lengths, regions, scripts, or exception formats. | The main recovery task is finding several errors across a submitted page. | The message is a system failure, permission problem, or outage rather than a validation issue. |
| Required state | Initial state with label naming the needed number type, purpose hint, type tel, autocomplete tel, and contact-choice wording. | Empty untouched state with persistent label and optional hint. | Empty untouched state with label and visible format example. | Invalid field with preserved user value and adjacent correction text. | Failed-submit state with summary visible near the form heading. |
| Accessibility burden | Use a visible label and hint that state the number type, purpose, and any contact timing. | Associate every text input with a visible label or equivalent accessible name that matches the visible question. | Connect hint, format example, canonical-value note, and error text to the input with descriptive relationships where supported. | Expose invalid state on the input and connect error text to the field description where possible. | Use a heading and alert behavior that makes the summary discoverable. |
| Common misuse | Using type number and losing leading zeros or plus signs. | Using placeholder text as the only label or instruction. | Rejecting pasted values that include spaces, dashes, parentheses, or lowercase characters. | Showing field errors before users have interacted with the control. | Replacing field-level messages with only a top-level summary. |