Skip to content

FRM-017c Say in words when a free-text limit is reached, and never cut text in silence

Level
Guideline, our choice
Verdict
Insufficient evidence (1 of 3 judges spoke)
Area
Forms
Status
proposed, version 1.0.0

Rule

When a free-text field limits how many characters or words it takes, say in words when people reach or pass the limit. Never stop or cut typed or pasted text without saying so.

Examples

Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.

Do: Input stops at the limit, and the count says so

Volunteer sign-up

Up to 500 characters

Limit reached

Sample to copy and paste. The button replaces what is in the field.

  • Last winter I helped to run the coat drive with four other people. I would like to do something on weekday evenings now that my shifts have changed. I speak English and some Polish, which has helped with new families. I am good at keeping records and have set up a simple sign-in sheet before. I have helped at the food bank on Saturdays for two years and I know the stock room well. I can lift boxes and drive a small van, and I am happy to start early. Last winter I helped to run the coat drive with four other people. I would like to do something on weekday evenings now that my shifts have changed. I speak English and some Polish, which has helped with new families. I am good at keeping record
The field holds 500 characters and the count reads “Limit reached”. Type another character, or paste the sample: nothing more goes in, and your own text and the caret stay where they are. After a paste the count says how many of the pasted characters were not added, so the lost end is never a surprise. The words are announced politely, and focus stays in the field.

Do: Input runs past the limit, and the count and the error say so

Volunteer sign-up

Up to 500 characters

20 characters over the limit

Sample to copy and paste. The button replaces what is in the field.

  • Last winter I helped to run the coat drive with four other people. I would like to do something on weekday evenings now that my shifts have changed. I speak English and some Polish, which has helped with new families. I am good at keeping records and have set up a simple sign-in sheet before. I have helped at the food bank on Saturdays for two years and I know the stock room well. I can lift boxes and drive a small van, and I am happy to start early. Last winter I helped to run the coat drive with four other people. I would like to do something on weekday evenings now that my shifts have changed. I speak English and some Polish, which has helped with new families. I am good at keeping record
The field already holds 520 characters, so the count reads “20 characters over the limit”, with an icon as well as words. Nothing is cut, and while the person types the count is not an error: the field is not marked invalid. Leave the field after a change, or press Send application, and the message at the field says what to do, naming the field by its visible label. Delete 20 characters and it goes.

Don't: A cap that cuts a paste in silence

Volunteer sign-up

Up to 500 characters

Sample to copy and paste. The button replaces what is in the field.

  • Last winter I helped to run the coat drive with four other people. I would like to do something on weekday evenings now that my shifts have changed. I speak English and some Polish, which has helped with new families. I am good at keeping records and have set up a simple sign-in sheet before. I have helped at the food bank on Saturdays for two years and I know the stock room well. I can lift boxes and drive a small van, and I am happy to start early. Last winter I helped to run the coat drive with four other people. I would like to do something on weekday evenings now that my shifts have changed. I speak English and some Polish, which has helped with new families. I am good at keeping record
maxLength is 500 and nothing else speaks. Paste the sample, which is 700 characters: the field keeps the first 500 and the readout shows the difference. The end of what the person wrote is gone, and the page said nothing.

Don't: A count that only turns red

Volunteer sign-up

Up to 500 characters

500/500

Sample to copy and paste. The button replaces what is in the field.

  • Last winter I helped to run the coat drive with four other people. I would like to do something on weekday evenings now that my shifts have changed. I speak English and some Polish, which has helped with new families. I am good at keeping records and have set up a simple sign-in sheet before. I have helped at the food bank on Saturdays for two years and I know the stock room well. I can lift boxes and drive a small van, and I am happy to start early. Last winter I helped to run the coat drive with four other people. I would like to do something on weekday evenings now that my shifts have changed. I speak English and some Polish, which has helped with new families. I am good at keeping record
The count reads “500/500” and turns red at the limit, and that is all. Type another character or paste the sample: the field stops and nothing says why. A person who cannot see the colour, or does not know what it means, has only a field that seems broken.

Why

A field that stops taking text without a word looks broken: the person keeps typing and nothing appears. A paste that loses its end looks whole at a glance and is sent short. A screen reader user cannot see either happen, so the field has to say it. WCAG 2.2, 3.3.1 Error Identification supports naming the error when text is too long, and 4.1.3 Status Messages supports how a message at the limit reaches assistive technology without taking focus. Neither requires a message at the limit itself.

Our reasons

Fewer than two judges have spoken about what a field says at its limit, so the verdict is Insufficient evidence (1 of 3 judges spoke) and this guideline is our choice. Carbon supports it. So does GOV.UK, an expert witness who does not vote. Material and Apple are silent, which is not a vote against. We ask for words at the limit for three reasons.

  • A silent stop is mistaken for a fault. People who see nothing appear as they type try again, reload or give up. One short line tells them the field is working and why it stopped.
  • A silent cut changes what is sent. The end of a message is often the part that matters most, such as the question or the date. Losing it without a sign sends something the person did not write.
  • Colour is not words. A count that turns red tells nothing to people who cannot see the colour or do not know what it means, as VIS-003a says.

Do

  • On a volunteer sign-up form, Tell us about yourself takes up to 500 characters. If input stops at 500, the count under the field reads "Limit reached".
  • When a paste is cut at a hard stop, the line says how much did not fit: "Limit reached. The last 200 characters you pasted were not added."
  • If input runs past 500 instead, the count reads "20 characters over the limit". That count is not an error while the person types: no aria-invalid and no error styling on a key press. The error appears at the field when they leave it or send the form (FRM-002a, FRM-002b), such as "Your answer to Tell us about yourself is 520 characters. Shorten it to 500 or fewer.", worded as TXT-001a describes.
  • The words at the limit reach a screen reader without moving focus, as FBK-004 describes.
  • Our own advice: saved text that is already over a new, lower limit shows as over and is not cut.
  • A word limit works the same way: "Limit reached" or "12 words over the limit".
  • How the limit and the count are shown before the person gets there is FRM-017b.

Don't

  • Put maxLength={500} on Tell us about yourself, so a 700-character paste keeps the first 500 and nothing says so.
  • Trim the value in onChange with value.slice(0, 500) and leave the field silent.
  • Turn the count red at the limit with no words.

Exceptions

  • Hard stop or overflow. Input may stop at the limit, or run past it and show an error. This guideline allows both and does not choose.
  • Short coded fields. A postcode, a card number or another code is FRM-017a, which checks the length after cleaning.
  • Paste. Whether a field takes a paste at all is FRM-017.
  • A product that chooses otherwise. This is a guideline. A product that leaves out the words at the limit still states the limit and shows the count (FRM-017b).

Verdict

Insufficient evidence (1 of 3 judges spoke). Only the judges decide; the expert witnesses are shown but do not vote. The judges do not settle this one, so it is a guideline: our own choice, with our reasons above. How verdicts work

Stances on FRM-017c
SourceRoleStancePage
WCAG 2.2LawSupports3.3.1 Error Identification
WCAG 2.2LawSupports4.1.3 Status Messages
Material DesignJudge No position
Apple Human Interface GuidelinesJudge No position
Carbon Design SystemJudge SupportsText input: usage
GOV.UK Design SystemExpert witness SupportsCharacter count
Text input
Nielsen Norman GroupExpert witness No position

Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.

History

  • Version 1.0.0, : First version.

Last checked against the other rules for conflicts on .

More in Forms: 15 rules and 12 guidelines · All rules