
Responsive Forms on Mobile: A Practical UX Guide
The average documented cart abandonment rate is about 70 percent (Baymard, as of Nov 2026). The fix need not be a redesign — start by honoring the type, inputmode, autocomplete, and layout affordances the OS already provides.
TL;DR: The average documented online cart abandonment rate is 70.22 percent across 50 studies compiled by the Baymard Institute (as of Nov 2026), and part of that loss is friction that is easy to miss on desktop but punishing on a phone. The recipe is concrete: use the right type and inputmode so the keyboard matches the field, honor the WHATWG standard autocomplete tokens so the OS fills the field for the user, lay out single column with labels above inputs, validate on blur rather than every keystroke, and keep the submit affordance visible. For input fields that collect information about the user, WCAG 2.2 Success Criterion 1.3.5 Identify Input Purpose (Level AA) also requires that each field's purpose can be programmatically determined when the field serves a purpose listed in WCAG's Input Purposes section and the content uses technologies that support identifying the expected meaning of form input data; in HTML, the autocomplete tokens can do that.
Why mobile form UX matters more than ever
Consumer-facing forms — sign-ups, checkouts, account flows, support — are filled in on phones as well as on desktops; check your own analytics for each form's mobile share. The Baymard Institute's compilation of 50 studies puts the average documented cart abandonment rate at 70.22 percent (as of Nov 2026), and in Baymard's survey of US online shoppers, a too long or complicated checkout process is among the reasons given for abandoning an order. On a phone, the frictions are small and they compound: the wrong keyboard appearing, autofill not firing, validation interrupting mid-typing, the submit button hidden under the keyboard.
Thumb typing is the underlying constraint. In a 2019 Aalto University study of about 37,000 volunteers, participants in a web-based transcription test typed 36.2 words per minute on average on mobile devices, and the project page summarizes that, with only one or two fingers, people type about 70 percent as fast on mobile devices as on full desktop keyboards. The on-screen keyboard also competes with the form for vertical space. Decisions that add friction can cost more on mobile because the user is already running on a slower input modality with less screen real estate.
The remedy is not "redesign the form for mobile" — it is to honor the platform affordances that already exist. The HTML spec, the OS keyboard, and the OS autofill system together carry most of the load if you give them the right hints. The work is mostly in the markup.
Right keyboard for the field: type and inputmode
The type attribute can do two jobs: some types add built-in validation, and mobile browsers can use the type to pick an on-screen keyboard — for example, MDN notes that mobile browsers may present a custom keypad for entering phone numbers with type='tel' — so confirm the result on real devices. These are the right choice when the field genuinely is that data type. type='email' and type='url' also bring built-in syntax validation; type='tel' does not enforce a particular syntax, so add the pattern attribute or custom validation if you need a format.
The inputmode attribute is a more focused tool. It controls only the keyboard, not validation, which is exactly the right separation when you need a specific keyboard for a custom field. inputmode='numeric' tells the browser it should show a virtual keyboard capable of numeric input, and the HTML spec notes that it is useful for PIN entry. It fits PINs, numeric OTP codes, digit-only postal codes, and credit card fields where the value is digits but not a phone number. inputmode='decimal' tells the browser it should show a virtual keyboard capable of fractional numeric input, with numeric keys and the locale's decimal separator, which suits currency amounts. The MDN inputmode reference documents the full set of values, and the attribute reached Baseline support in 2021.
<!-- Email field — built-in validation + email keyboard -->
<input type="email" name="email" autocomplete="email" required>
<!-- Phone field — phone keypad -->
<input type="tel" name="phone" autocomplete="tel">
<!-- Digit-only postal code (for example, five-digit US ZIP codes) — numeric keyboard -->
<input type="text" inputmode="numeric" pattern="[0-9]*" autocomplete="postal-code">
<!-- One-time code — numeric + SMS security code AutoFill -->
<input type="text" inputmode="numeric" autocomplete="one-time-code">The OTP case is worth calling out. Apple documents autocomplete='one-time-code' for autofilling security codes from single-factor SMS login flows, and on Chrome for Android the WebOTP API covers the same case: the page calls navigator.credentials.get() with the otp option, the SMS ends with an origin-bound line such as @example.com #123456, and Chrome shows a one-tap consent prompt built on Android's SMS User Consent API. Combined with inputmode='numeric', the OTP field feels nearly automatic — the user receives the SMS, taps a single suggestion, and the field fills. Without these hints, the user may have to switch apps, copy the code, and paste it back.
Autocomplete that actually works
The WHATWG HTML specification defines roughly 50 standard autocomplete tokens — name, given-name, family-name, email, tel, street-address, address-line1, postal-code, country, cc-number, cc-exp, cc-csc, and more. Browsers and password managers use these tokens to know which OS-level autofill datum to inject. Arbitrary strings — autocomplete='your-name', autocomplete='userEmail' — are not recognized. The browser then treats the field as autocomplete='on', which gives no hint about what data is expected and leaves the browser to rely on heuristics (if the form itself has autocomplete='off', the field is treated as 'off' instead). The standard tokens are not optional.
A single full-name field with autocomplete='name' is the broader option. The HTML spec generally encourages authors to use the broader fields rather than the narrower fields, because the narrower fields tend to expose Western biases: many cultures put the family name first and the given name second, and many others simply have one name. If you do split the name, mark the parts with given-name and family-name so autofill can fill each part.
For credit cards, the four-token set is cc-number, cc-exp-month, cc-exp-year (or a combined cc-exp), and cc-csc. Browsers and password managers can use these tokens to fill saved card details; confirm with each one which card fields it stores and fills. The wrong markup turns autofill into a manual copy-paste exercise and adds friction to checkout.
WCAG 1.3.5 Identify Input Purpose, added at Level AA in WCAG 2.1, requires that the purpose of each input field collecting information about the user can be programmatically determined when the field serves a purpose listed in WCAG's Input Purposes section and the content uses technologies that support identifying the expected meaning of form input data; in HTML, the autocomplete tokens can meet this. The W3C's Understanding document says this makes filling out forms easier, especially for people with certain cognitive disabilities. The WCAG 2.2 Identify Input Purpose SC links to WCAG's list of input purposes. WCAG says the listed terms are not keywords that must be used but purposes that the taxonomy adopted by the page must capture. A note adds that the list is based on the control purposes defined in the HTML specification's Autofill section, but that a different technology may define some or all of the same concepts and only the concepts mapped to the listed meanings are required. For those fields, this is not just a conversion question — it is an accessibility requirement.
Generic autocomplete='off' as a defensive default is the worst pattern. It asks the browser not to remember or prefill values for every legitimate user (browsers may let users override it) to prevent a rare edge case (autofill firing on a sensitive field). The fix is per-field discretion: turn off autofill on truly inappropriate fields, leave it on everywhere else.
Layout: one column, generous spacing
In Baymard's checkout usability testing, single-column layouts resulted in fewer skipped fields, misinterpreted fields, and errors than multicolumn layouts. Baymard reports that multicolumn forms are more difficult to scan because users have to look both down and across the page rather than down a single column.
Single column also reads better on desktop. The exception is paired fields that genuinely belong on one row — first name plus last name, expiration month plus year, city plus postal code. These are tolerable on desktop because the cognitive grouping is correct; on mobile they should still stack at the breakpoint where one or the other no longer fits.
Labels belong above the input, not to the left. Top-aligned labels reduce the gaze distance from label to input and survive the OS keyboard appearing without truncating. Placeholder text is not a label — it disappears once the user starts typing (and some browsers hide it as soon as the user focuses the field), which leaves the user with no context for what the field expects.
Input height should clear the 44 by 44 CSS pixel target of WCAG 2.5.5 Target Size (Enhanced), the AAA level; the AA minimum under WCAG 2.5.8 Target Size (Minimum) is 24 by 24 CSS pixels. Both criteria have exceptions. Under 2.5.8, an undersized target still passes when a 24 CSS pixel diameter circle centered on its bounding box does not intersect another target or the circle of another undersized target. Both criteria also exempt a target whose function is available through a different control on the same page that meets the criterion (2.5.5: an equivalent link or control of at least 44 by 44 CSS pixels), a target in a sentence (2.5.8 adds targets whose size is constrained by the line-height of non-target text, and 2.5.5 adds targets in a block of text), a target whose size the user agent determines and the author does not modify, and a target whose particular presentation is essential to the information being conveyed (2.5.8 adds presentations that are legally required). A 32 px tall input passes AA but is too small for thumbs and misses the 44 px target in the audit; the same input at 44 px, or a 36 px control whose tappable area is extended by 4 px above and below, works.
Error handling that does not punish
One form regression to avoid is real-time validation that fires on every keystroke. The user types the first character of an email address, the field instantly turns red and says "Invalid email format," and the user has not finished typing yet. The validation is technically correct and emotionally hostile.
The right pattern is on-blur validation: the field validates when the user leaves it, not while they are still typing. The user finishes the field, moves to the next, and the previous field reports its status when the user has actually finished. The submit-time pass catches anything skipped or corrected since blur.
Error messages belong adjacent to the field with aria-describedby linking the input to the message. The error becomes part of the field's accessible description, which screen readers can announce when focus enters the field; sighted users see it in the immediate visual context. Toast notifications and top-of-form error summaries are not substitutes — they require the user to scan upward to find which field needs attention.
<label for="email">Email</label>
<input
id="email"
type="email"
autocomplete="email"
aria-describedby="email-error"
aria-invalid="true">
<p id="email-error" class="error">
Enter an email like name@example.com.
</p>Never clear the field on error. The user knows what they typed; making them retype from scratch is hostile. Submit-time validation should scroll to the first invalid field and place focus on it, so keyboard and screen reader users get there immediately without scrolling.
The submit affordance
Long forms hide the submit button under the keyboard or off the bottom of the viewport, which means the user has to scroll to find the action after they think they are done. The fix is a sticky submit on long forms — a footer bar containing the submit button that sits above the keyboard when one is open and at the bottom of the viewport otherwise. The pattern keeps the goal visible and reduces the "is there more?" uncertainty that plagues multi-step flows.
Loading state on submit is non-negotiable. The button must clearly indicate that the form is processing — a spinner inside the button, a disabled state with a visible label change, or both. A button that becomes disabled without feedback feels like the form broke. The user clicks again, the double-submit fires, and now there is a deduplication problem on the server.
The success path needs equal attention. Forms that submit without confirmation feel like they failed even when they succeeded. Toast, inline confirmation, or redirect to a success page — any of the three is acceptable; all three missing is the problem.
Phase 1 deliverables and acceptance criteria
The audit is mechanical: check each field against the table below.
| Field type | Right attributes |
|---|---|
| `type="email"` + `autocomplete="email"` | |
| Phone | `type="tel"` + `autocomplete="tel"` |
| First name / last name | `autocomplete="given-name"` / `"family-name"` |
| Street address | `autocomplete="street-address"` or `"address-line1"` |
| Postal code (digit-only formats such as five-digit US ZIP codes) | `inputmode="numeric"` + `autocomplete="postal-code"` |
| Credit card number | `inputmode="numeric"` + `autocomplete="cc-number"` |
| One-time code (numeric codes) | `inputmode="numeric"` + `autocomplete="one-time-code"` |
- Walk every form field and verify the
type,inputmode, andautocompleteattributes. Where a field is wrong, the fix can be a one-line markup change; measure completion before and after. - Test on a real iPhone and a real Android. The keyboard that appears is the proof of the markup — simulators may not match the keyboard a real device shows.
- Measure completion rate per field with funnel analytics. The biggest drop-off can come from one or two specific fields with the wrong keyboard or no autofill hint.
- Move all field validation to blur instead of keystroke. The change is mechanical and the user experience improvement is immediate.
- Verify submit button visibility with the on-screen keyboard up. If it disappears, add a sticky footer or move the submit closer to the visual flow.
The point is not to redesign the form. It is to honor what the OS, the autofill engine, and the spec already do for free, and to stop fighting them.