Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

FORM-004 Published

Inline validation form

A form that checks each field when you move to the next one and, if something is wrong, shows how to fix it right beneath.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | Inline validation form

Inline validation form UI design (desktop wireframe)

Wireframe (mobile) | Inline validation form

Inline validation form UI design (mobile wireframe)

What changes on mobile

  1. Errors right under the field: Even on a narrow screen, it is clear which field the error belongs to, with no scrolling back and forth.
  2. The screen does not move when an error appears: Moving the screen just as the next field is being typed would interrupt, so the position stays put.
  3. Examples above the field: Placed where the keyboard is unlikely to hide them, so they can be checked while typing.
  4. Full-width fields and button: Fields stretch across the narrow screen so there is room to type.

Before you choose this pattern | Inline validation form

Good fit

  • Many fields with a fixed format, such as email and phone
  • Errors listed only after sending make it hard to find what to fix
  • You want fewer enquiries that cannot be answered because of a typo
  • Application, registration and quote request forms

Poor fit

  • Few fields, where checking on submit is enough (the submit-time errors of the <a href="/patterns/en/form-single-page/">single-page form</a> are often sufficient)
  • Mostly free-text fields, with almost nothing whose format can be checked
  • You want to judge free-form fields such as the message in detail (inline checks should be limited to fields with a fixed format)

Why this wireframe works | Inline validation form

Mistakes are noticed right after typing

When everything is flagged after pressing send, people scroll back up hunting for what to fix. Checking a field as you move to the next means it can be fixed right there, right after typing.

No errors while typing

An error that appears the moment you start typing an email address feels like being scolded mid-sentence. The check runs when you leave the field, so it never interrupts while you type.

The error clears when fixed, so you know it is fixed

An error that stays until sending leaves people unsure whether they fixed it. A field that has shown an error is re-checked on every input and cleared as soon as it is valid, so the fix is confirmed at once.

Differences that need no fixing are not errors

Being refused for full-width digits or a missing dash leaves people puzzled. Differences that can be safely normalized are accepted and tidied, which reduces the number of errors in the first place.

On mobile, errors appear right under the field

On mobile, errors gathered at the top mean scrolling back and forth to see them. Errors appear right under the field and the screen stays put, so the flow of typing is not broken.

Common mistakes | Inline validation form

An error appears on the first character

Checking while typing shows errors even to people typing correctly. Run the check when the field loses focus.

The error does not clear after fixing

If errors stay until sending, people cannot tell whether the fix worked and re-check the same field again and again. Re-check a field that has shown an error on every input and clear it when valid.

The error says only “Invalid input”

Without what is wrong and how to fix it, people can only guess. Say what to check and give an example of the correct form.

Full-width digits or a missing dash counted as errors

Refusing a phone or postal code over full-width digits or dashes leaves people unsure what is wrong. Accept differences that can be safely normalized and tidy them before sending.

The send button is disabled until everything is valid

When the screen does not say why the button cannot be pressed, people stop there. Keep the button enabled and list what is missing when it is pressed.

FAQ | Inline validation form

When should the error appear?

The right timing depends on the form and the field. This wireframe runs the first check when you move from one field to the next, so nothing appears while typing. A field that has shown an error is re-checked on every input and cleared as soon as it is valid.

Is a confirmation for valid input necessary?

Not necessarily. A subtle mark on fixed-format fields such as email or postal code gives some reassurance. Showing it on fields with no right answer, such as name or request, makes the meaning unclear.

If fields are checked inline, is the submit-time check still needed?

Yes. Inline checks only act on fields that were touched, so a required field nobody entered is missed. Check every field on submit and list what is missing at the top of the form. Validate the same things on the server.

How is this different from the single-page form’s submit-time errors?

The single-page form checks everything when send is pressed and shows errors in a list at the top and under each field. The inline validation form adds a check right after each field is entered. The more fixed-format fields there are, the bigger the benefit of fixing on the spot.

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published