A10.06.4Input-time constraints over post-submission validationdesignresearch

Input-time constraints beat post-submission validation

Aliases: inline validation · input masking · real-time format enforcement

What it is

Input-time constraints rule out illegal values while the user is still typing — a field that only accepts digits, automatic formatting into segments, characters outside the allowed range that simply won't register — rather than letting someone fill out an entire form, hit submit, and only then get an error message pointing at what's wrong. Both approaches can end up with the same legal final data, but the user's experience is entirely different: one makes the error never exist in the first place, the other lets the error happen, gets recorded, and then sends the user back to find and fix it.

Why it happens

Post-submission validation costs more because it pushes error correction from "now" to "later": by the time a user has filled in a tenth field and been interrupted by a submission error, the mental state they were in while filling the third field — what they meant to put there, why — has largely faded, and they have to relocate the offending field and reconstruct their original intent before the error message even makes sense. Input-time constraints remove this entirely: an illegal character can't be typed into the box, a formatting slip is auto-corrected or flagged the instant it happens, and the user never carries an already-wrong value forward to the next step — correction happens while intent is still fresh.

Studying it

A common way to study this is to compare completion time and error-recovery behavior across two form designs — one with real-time constraints and immediate feedback during input, the other with traditional fill-then-submit error reporting — measuring total completion time, how many times a single field gets re-entered, and whether users can locate and fix an error without repeated attempts. Such comparisons consistently show that real-time constraints shorten completion time and reduce repeated errors, but a methodological distinction matters here: constraint is not the same as interruption. If real-time validation pops an error before a word or value has even finished forming, it breaks the user's input rhythm and creates new confusion — so this kind of study usually needs to record subjective annoyance with the real-time feedback itself, not just the objective error rate.

Where it stops holding

Input-time constraints depend on the legal range of a value being determinable at the moment of entry. For cases where legality depends on a relationship across fields (which of two dates comes first) or on an external system (whether a username is already taken, whether stock is still available), a single-field constraint can't do the job — validation still has to happen at submission or some intermediate point, but it should sit as close as possible to the action that creates the dependency rather than being deferred to the end of the whole form. This principle also doesn't apply to input methods that can't be intercepted character by character, like voice or handwriting recognition, which have to fall back on feedback delivered right after recognition completes.

Applying it

For every input field, first ask whether its legal range can be determined at the character or fragment level; if it can, enforce the constraint directly at the input control — restrict the character set, auto-format, reject out-of-range values on entry — instead of reporting "invalid format" after submission. For cases where legality can't be judged at the single-field level, move the validation point as early as possible to wherever the dependency actually arises (check that the second date is after the first the moment it's changed, rather than lumping every check at the end). Verification: track how many times, and on which fields, users go back and edit a value between opening the form and successfully submitting it. If corrections cluster on a handful of fields, those fields' constraints haven't been moved early enough and should be fixed first.

Related

  • Same group: A10.06.1 physical shape and interface constraints against mis-assembly · A10.06.2 reducing the reachability of dangerous actions · A10.06.3 defaults as the cheapest error-proofing device
  • Nearby: A10.03 omission errors and execution errors · A10.15 error detection and self-discovery
  • Search terms: inline validation · input masking · real-time constraint

Cards in the same group

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/handbook/A10.06.4