| UI or UX | UI + UX - Multi-line freeform writing field | UI + UX - Single-line freeform data-entry control | UI + UX - Field-level validation feedback | UI + UX - Form recovery summary |
| UI guidance | Render a persistent label, enough visible rows for the expected answer, optional hint, readable multiline text, visible focus state, and nearby error or count text associated with the textarea. | 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. | 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 textarea when users need to write or paste sentences, paragraphs, explanations, notes, or comments that may wrap across lines. | 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. | 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 | A more-detail field has a visible question, sensitive-data hint, five visible rows, wrapping text, remaining-character count, and an error directly above the textarea when needed. | A reference-name field has a visible label, hint, medium width, focus ring, and error message beneath the hint when submitted empty. | 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 | A paragraph question is squeezed into a single-line input that hides most of the answer. | The only instruction is placeholder text that disappears when the user starts typing. | Error message appears far from the field it describes. | Summary and field messages visually disconnected or contradictory. |
| Good UX | A user writes two paragraphs, sees remaining characters update, submits, and the exact line breaks and wording are preserved. | 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. | 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 writes a long explanation, hits submit, and the product clears the entire draft after a length error. | Validation fires on the first focus event and blocks typing before the user has had a chance to answer. | Showing errors before users type. | Only showing errors below the fold. |
| Best fit | Users need to write sentences, paragraphs, comments, explanations, notes, or descriptions. | The answer is short and user-authored. | A single field has a specific correctable problem. | Form submission can produce one or more errors. |
| Avoid when | The answer is a short one-line value. | The answer is a paragraph, comment, address block, or explanation requiring multiple lines. | 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 | Empty untouched state with visible label and optional hint. | Empty untouched state with persistent label and optional hint. | Invalid field with preserved user value and adjacent correction text. | Failed-submit state with summary visible near the form heading. |
| Accessibility burden | Associate the textarea with a visible label that states the writing prompt. | Associate every text input with a visible label or equivalent accessible name that matches the visible question. | 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 a single-line input for paragraph answers. | Using placeholder text as the only label or instruction. | Showing field errors before users have interacted with the control. | Replacing field-level messages with only a top-level summary. |