New Tool Radar

AI Design Workflows

How to Check Error Messages in an AI-Designed Form

Check every error message in an AI-designed form names the field in error, says what is wrong, and tells the reader how to fix it.

Schematic diagram: three steps to check error messages — read each message, name the field, add the fix — with a practice result of 2 of 4 messages passing and 2 failing.

Check every error message in an AI-designed form names the field in error, says what is wrong, and tells the reader how to fix it. Submit the form with a wrong entry in each field in turn, write down the exact message that appears, and judge each message on those three parts.

A vague error message leaves the reader stuck. The W3C page for error identification states that in the case of an unsuccessful form submission, it is not sufficient to only re-display the form without providing any hint that the submission failed, and that the error must be indicated in text. The companion page for error suggestions adds that users may abandon the form because they may be unsure of how to correct the error even though they are aware that it has occurred.

Schematic diagram: three steps to check error messages — read each message, name the field, add the fix — with a practice result of 2 of 4 messages passing and 2 failing.

What counts as passing

Two W3C rules shape this check. Success Criterion 3.3.1 Error Identification states that if an input error is automatically detected, the item that is in error is identified and the error is described to the user in text. Success Criterion 3.3.3 Error Suggestion states that if an input error is automatically detected and suggestions for correction are known, then the suggestions are provided to the user, unless it would jeopardize the security or purpose of the content.

The W3C pages give two examples that draw the line. “Email is not valid” passes 3.3.1 but not 3.3.3, because it names the problem without a fix. “Please provide a valid email address in the format [email protected]” passes both, because it also conveys how the error can be fixed. For a month field where the reader types “12”, the W3C suggests listing the accepted values or asking “Do you mean December?”

The practice design and the check table

Use a fictional order form for the exercise. The fictional brand is Maple Corner, a small cafe at 12 Maple Lane that does not exist. Four wrong entries were made on its order form, one per field, and each message below is the exact message shown. Nothing in the table comes from a real client form.

How the table was worked out

Each message was judged on three parts: does it name the field, does it say what is wrong, and does it tell the reader how to fix it. A message needs all three to pass. A message that names the field but gives no fix fails, and a message that gives no field name fails even if the fix is clear.

Field and entry Message shown Result
Email, entered as “maple@” “Please provide a valid email address in the format [email protected]” Pass — names the field, says what is wrong, and gives the format to fix it.
Postcode, entered as “12” “Postcode is not valid” Fail — names the field but gives no fix; the reader still does not know the right format.
Full name, left blank “This field is required” Fail — does not name the field, so a reader with several blank fields cannot tell which one it means.
Pickup month, entered as “12” “Do you mean December?” Pass — offers the correction the reader can accept.

Read the table row by row. Two messages pass and two fail. The postcode message fails because it stops at “not valid” with no format to aim for. The blank-name message fails for the opposite reason: it gives a fix of sorts, but never names the field, so it is useless when more than one field is blank.

How to fix a failing row

Name the field in every message

Start the message with the field name. In the practice table, “This field is required” becomes “Full name is required. Enter your full name.”

Say what is wrong in plain words

Describe the problem, not just the verdict. “Postcode is not valid” says nothing about what the reader did wrong; “Postcode needs 5 digits” does.

Add the fix: a format, an example, or a list

Give the reader something to aim for: the expected format, an example entry, or the list of accepted values. The W3C month example shows the pattern: offer “Do you mean December?” instead of only saying the entry is wrong.

Limits

The check covers only messages shown after an error is automatically detected. It does not cover errors the form never detects, and it does not cover the security exception in Success Criterion 3.3.3, where a suggestion is not required if it would jeopardize the security or purpose of the content. The four messages apply only to this practice form. Expected result. We checked the W3C Understanding pages for Success Criteria 3.3.1 and 3.3.3. We did not submit the Maple Corner order form.

Sources

See all