How to Report Errors in Forms: 10 Design Guidelines (2024)

Summary: Help users recover from errors by clearly identifying the problems and allowing users to access and correct erroneous fields easily.

In This Article:

  • Introduction
  • 1. Aim for Inline Validation Whenever Possible
  • 2. Indicate Successful Entry for Complex Fields
  • 3. Keep Error Messages Next to Fields
  • 4. Use Color to Differentiate Errors from Normal Field States
  • 5. Add Iconography or Subtle Animation for Easy Scanning
  • 6. Use Modals or Confirmation Dialogs Sparingly
  • 7. Don’t Validate Fields Before Input is Complete
  • 8. Don’t Use Validation Summaries as the Only Indication of an Error
  • 9. Don’t Use Tooltips to Report Errors
  • 10. Provide Extra Help for Repeated Errors
  • Conclusion

Introduction

Forms are necessary components of many applications and websites. We use them to log in, purchase items, send feedback, and enter our personal information. Think about the websites you use and how many times you enter information: how often do you run into errors? How frustrating is it to navigate those errors?

Error messages are an indicator of system status: they let users know that a hurdle was encountered and give solutions to fix them. But in order for the error messages to be effective, people need to see them, understand them, and be able to act upon them easily. Visibility of system status is one of Jakob Nielsen’s 10 usability heuristics. It refers to how well the state of the system is conveyed to its users. Ideally, systems should always keep users informed about what is going on, through appropriate feedback within reasonable time.

To err is human, and people will make mistakes when using software. An error flow is the sequence of steps that the user must go through in order to correct the error. A thoughtful error flow allows users to easily fix their mistakes and proceed with their tasks.

There are three main principles that should be followed when designing error-correction flows:

  1. The error message should be easy to notice and understand.
  2. The field(s) in error should be easy to locate.
  3. Users shouldn’t have to memorize the instructions for fixing the error.

These guidelines need little explanation: first, if users don’t know that there is a problem with their input, they won’t be able to fix it. Second, people shouldn’t have to hunt for the error through the form. And last but not least, they shouldn’t have to remember how to fix the problem while they’re fixing it: the instructions should be right in front of their eyes.

In this article, we discuss helpful guidelines for designing error flows.

1. Aim for Inline Validation Whenever Possible

Ideally, all validation should be inline: that is, as soon as the user has finished filling in a field, an indicator should appear nearby if the field contains an error. This type of error message is easily noticeable; moreover, fixing the error immediately after the field has been completed requires the least interaction cost for users: they don’t need to locate it or navigate to the field, nor do they have to switch context from a new field to return to an old field they thought they had completed successfully.

Of course, there will be situations where inline validation won’t be possible and data entered by the user will need to be sent to a server for verification.

2. Indicate Successful Entry for Complex Fields

Inline validation can also be used to indicate successful completion. For example, if your users must create a unique username, a green checkmark and a message that the username is available let users know they can proceed to the next step. Follow the error-prevention guidelines: offer suggestions for field values, constrain inputs to legal values, and be flexible by allowing for typos, abbreviations, or different input formats.

For complex input such as new passwords, instant inline validation (which appears as the field value is being typed) will prevent users from guessing or checking multiple times if what they’ve entered meets the guidelines set by the system. In the example below, the password-strength indicator changes as the user is typing and helps the user decide if the string entered so far is good enough or more characters need to be added.

How to Report Errors in Forms: 10 Design Guidelines (1)

However, don’t go overboard with success indicators. Success indicators shouldn’t distract users from filling out forms and should only be used when the additional context helps complete the form faster or more accurately. For example, you don’t need to show a success message when the only requirement on the field is that it is filled in, as that message won’t provide much additional context to your user.

3. Keep Error Messages Next to Fields

With inline validation, the error message is naturally shown next to the field causing the error. But even when the fields are not validated inline, it pays off to show an actionable error message below or next to the problem field in order to help the user fix the error. The message should follow error-message guidelines: it should be explicit, human-readable, polite, precise, and should give constructive advice.

Keeping error messages next to the fields in error minimizes working-memory load: users can see the error message while fixing the error instead of having to remember it.

4. Use Color to Differentiate Errors from Normal Field States

Red is the color that is associated most with errors, along with orange or yellow for warnings, and green or blue for success. Make sure that the color of the validation text stands out from the rest of the form so the user will notice it quickly. Add a semitransparent background of the same color to the error field to make it salient on a long page with many form fields.

5. Add Iconography or Subtle Animation for Easy Scanning

Together with color, an icon to the left of your error message or validation summary will draw attention to the error and also help users who are color blind. When the user scans the form, the icon will stand out and draw the eye to what needs to be fixed.

How to Report Errors in Forms: 10 Design Guidelines (2)

A subtle pulse or bounce animation on the icon corresponding to an error can further draw users’ attention to the error. However, don’t abuse animation: if there are multiple errors, many animated icons can be overwhelming. And don’t animate text — animated error messages are hard to read.

6. Use Modals or Confirmation Dialogs Sparingly

When you need to draw extra attention to a potential error, you can use a modal or confirmation dialog to explain details and help the user fix the issue. However, use such dialogs sparingly as they have two big disadvantages: (1) they are disruptive; (2) the error message is presented in a window that needs to be dismissed in order to fix the error, so any complex instructions will have to be stored in users’ working memory, thus increasing their cognitive load. They are, however, okay if the error message is simple or the form could still be submitted as it is.

How to Report Errors in Forms: 10 Design Guidelines (3)

7. Don’t Validate Fields Before Input is Complete

In most cases, avoid showing the error until the user has finished with the field and moved to the next field. It can be annoying to see an error message before being given the opportunity to finish typing.

How to Report Errors in Forms: 10 Design Guidelines (4)

8. Don’t Use Validation Summaries as the Only Indication of an Error

A validation summary is shown at the top of the form and lets users know that there are errors that need to be fixed on the page, whether those errors are in the viewport or below the fold. A validation summary can give the user a global understanding of all the errors in a form, but shouldn’t be used as the only form of error indication, as it forces the user to search for the field in error; moreover, the error message may no longer be present in the viewport when the user reaches the error field, thus forcing the user to memorize the error message while fixing the issue.

How to Report Errors in Forms: 10 Design Guidelines (5)

Tooltips are sometimes used to indicate errors. An alert icon is usually displayed next to the field(s) in error, and then, once users hover on the icon or move focus in that field, a tooltip or a toast containing the error message will appear.

Generally, we recommend against this method of signaling errors. First, some alert icons are hard to notice. Second, users may wonder what is wrong with the field, without realizing that they can actually see the error message if they take an extra step. Third, why make users work more (i.e., hover or move focus to field) in order to see the error message?

How to Report Errors in Forms: 10 Design Guidelines (6)

10. Provide Extra Help for Repeated Errors

If the same error occurs repeatedly (usually 3 times or more in a single form-filling attempt), it is often an indication of a serious problem in the user interface. Quite possibly, your error messages are insufficiently helpful, but there could also be another mismatch between the design and users’ needs. As always, remember that when users make errors, it’s not their fault. It’s your design that’s too error-prone.

We recommend reviewing analytics data for repeated errors and then reviewing (or testing) the design to try to improve it. A rewritten error message would often be the first thing to try.

As more of a band-aid solution, you can also show a link to more detailed help information or documentation after a user has made the same error too many times.

Conclusion

Error flows should be designed to help users fix the mistakes in a form and advise them how to avoid making more. Ensure that users can easily detect errors, understand how to fix them, and see the error message while correcting the corresponding error. Remove the guesswork and let users get on with their tasks.

How to Report Errors in Forms: 10 Design Guidelines (2024)

FAQs

How to Report Errors in Forms: 10 Design Guidelines? ›

Use Color to Differentiate Errors from Normal Field States

How do you write a validation error message? ›

Surinder kumar
  1. Suggestions for error/validation messages.
  2. 1.Try to write clear and not ambiguous messages.
  3. Avoid negative words.
  4. Message should give the direction to user.
  5. Message should be specific and relevant.
  6. Avoid uppercase text.
  7. Try to provide appropriate actions.
  8. Use progressive disclosure approach.
Feb 6, 2019

What details are eligible to be placed in error messages? ›

Concisely and precisely describe the issue. Generic messages such as An error occurred lack context. Provide descriptions of the exact problems to help users understand what happened.

Where to display error message? ›

One of the simpler patterns is to display the error message in the same row where the content lives. In that case, the error message is more likely to live under the input field, not above it. Lengthy error messages could be collapsed and expanded with an accordion.

How to write an error report? ›

Step 2: Documenting the error
  1. Identify and explain the error in detail. Note any messages or codes connected with it.
  2. Provide steps to replicate it. This helps find the issue's solution quickly.
  3. Include screenshots, logs, or related documents to document the error.

How do you display errors in forms? ›

Error messages should be clearly indicated

And you should be clear where that error has been made. You can do this by: Highlighting the field in question visually, usually with an outline around the input in a bright noticeable colour (usually red) Adding additional icons or visual cues to draw attention to the mistake.

What is a good sentence for error? ›

Examples of error in a Sentence

I made an error in my calculations. They uncovered several errors in his report to the committee. The paper contains numerous spelling errors. horrifying cases of hospital error The shortstop was charged with an error.

How do you write a good error message? ›

Write in sentence case with appropriate punctuation.
  1. Body. Include: the reason for the error and the problem, how someone should act and what happens if they don't act. ...
  2. Inform to build trust. ...
  3. Encourage people along the path. ...
  4. Satisfy by meeting expectations. ...
  5. Offer a backup solution.

How do you inform an error? ›

Correcting a mistake someone else has made involves following this message structure:
  1. Politely point out the mistake – Describe what they've done that's wrong.
  2. Provide context – Explain the impact of the error. ...
  3. Offer a solution – If you can offer a solution, now's the time to do it.
Mar 14, 2023

What is the best practice for form error message? ›

When users do make errors, it's crucial to provide meaningful and jargon-free error messages that clearly explain what has gone wrong and how to recover. Instead of generic messages like “Error” or “Invalid input,” clearly explain to the user how they can fix the issue.

Where is the best place for error messages on forms? ›

Keep Error Messages Next to Fields

Keeping error messages next to the fields in error minimizes working-memory load: users can see the error message while fixing the error instead of having to remember it.

How to format an error message? ›

An error message should start with a general statement of the problem then give a concise description of what went wrong. Consistent use of punctuation and formatting makes errors easier to parse.

Should I make space for error messages in forms? ›

Place 16dp of vertical space between text fields and below the error text. I think the design with space makes sense for two reasons: the layout doesn't jump when error messages are displayed. more white space makes the design look less cluttered.

What is an example of a description error? ›

performing the right action for the wrong object, e.g. pouring your juice on your cereal in the morning instead of the milk.

How can you troubleshoot a form submission error message? ›

How to fix Form Submission Failures. Fixing form submission failures may involve troubleshooting server issues, checking form settings, and ensuring that the website is running smoothly. It may also involve communicating with the user to identify any errors on their end.

What is an example of a validation error? ›

For example, if a user inputs, “john.newman@gmail” in an email field, an adaptive validation error message would read, “This email address is missing part of the domain (such as '.com').”, whereas if they had typed “john.newmangmail.com” the message would read, “This email address is missing the @ character”.

What is an example of an email validation error message? ›

What are some common email validation error messages? Common email validation error messages include "Please enter a valid email address," "Invalid email format," "Missing '@' symbol," and "Invalid domain name."

How do you throw an error message? ›

To throw an error in JavaScript, you can use the throw keyword followed by the error object or any value that you want to throw. Here's an example: throw new Error("Something went wrong"); In this example, we create an instance of the Error object with a custom error message "Something went wrong" and throw it.

Top Articles
Trusted Guidance and Protection | New York Life Insurance
What to Prioritize: Debt Payoff or Saving? - Diana on a Dime
Where To Go After Howling Pit Code Vein
Ghosted Imdb Parents Guide
Lifebridge Healthstream
Alan Miller Jewelers Oregon Ohio
The Ivy Los Angeles Dress Code
Localfedex.com
Delectable Birthday Dyes
Large storage units
All Buttons In Blox Fruits
Lax Arrivals Volaris
Craiglist Galveston
Nba Rotogrinders Starting Lineups
Strange World Showtimes Near Roxy Stadium 14
Geometry Review Quiz 5 Answer Key
Tips on How to Make Dutch Friends & Cultural Norms
SN100C, An Australia Trademark of Nihon Superior Co., Ltd.. Application Number: 2480607 :: Trademark Elite Trademarks
Yugen Manga Jinx Cap 19
Radical Red Ability Pill
Hwy 57 Nursery Michie Tn
A Man Called Otto Showtimes Near Carolina Mall Cinema
UAE 2023 F&B Data Insights: Restaurant Population and Traffic Data
Noaa Marine Forecast Florida By Zone
Taktube Irani
Chicago Pd Rotten Tomatoes
Mobile Maher Terminal
Nail Salon Open On Monday Near Me
Ixlggusd
Cruise Ships Archives
Jennifer Reimold Ex Husband Scott Porter
Carespot Ocoee Photos
Afspraak inzien
9781644854013
Los Garroberros Menu
Wsbtv Fish And Game Report
Gary Lezak Annual Salary
Cygenoth
Craigslist Pa Altoona
Prior Authorization Requirements for Health Insurance Marketplace
2007 Peterbilt 387 Fuse Box Diagram
Paul Shelesh
Comanche Or Crow Crossword Clue
Model Center Jasmin
Glowforge Forum
Chitterlings (Chitlins)
Dcuo Wiki
Inside the Bestselling Medical Mystery 'Hidden Valley Road'
Craigslist Charlestown Indiana
Koniec veľkorysých plánov. Prestížna LEAF Academy mení adresu, masívny kampus nepostaví
Elizabethtown Mesothelioma Legal Question
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 5970

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.