Error Messages: Examples, Best Practices & Common Mistakes
Your users will make mistakes. It’s inevitable. That’s what error messages are for—but so many companies fail to follow best practices, and they’re pissing off potential customers in the process.
So, how can we better design error messages to improve the user experience and, therefore, increase conversions?
How error messages affect UX
Error messages can be frustrating. How many times have you gone to fill out a form or create an account, only to receive a message like this?
It makes you want to drop what you’re doing and break something, right?
Error messages trigger cortisol, a well-known biomarker of psychological stress. That cortisol buildup can turn into anxiety and, eventually, cause a user to give up.
Sometimes, the damage isn’t only the lost conversion. It also turns someone into an active detractor for your brand. Investing in a better user experience tends to work in the short term (increased conversion rate) and over the long term (increased retention, brand loyalty, word-of-mouth, etc).
Case study: Poor error message design
Ever booked a flight with Spirit Airlines? It’s not the best customer experience (to put it lightly). It warmed my heart to note that their error messages were also subpar.
I started by messing up everything on the registration form:
Uh oh, I didn’t inform them I was a “Mr.” Well, I fixed that, but then I was informed that I had another error:
Email invalid? Good call. Forgot the “.com.” That’s a quick fix, but…
What is this? I also seemed had a typo in my matching email. I wish they had informed me about that when I was fixing my first email.
Well, apparently, someone signed up with my email already. I guess that’d be okay, but I wish they’d have given me a “password recover” option in case that was my email. Oh, and maybe they could have kept the passwords I tried to enter in the fields below. Dammit.
Not all forms are that bad, but many have the same common mistakes. Avoid them, and you’ll be ahead of much of your competition.
4 common mistakes with error messages
Your error messages should clearly define the problem. Ever gotten a message like the following?
Why? What the hell do I do now?
Below, Bitly tried to be “conversational” but failed to give me specifics. What’s not right? Username? Password? Both? Who knows. “Nope” also sounds condescending—almost mocking my mistake.
That’s a common one. A form should clearly demarcate your errors and tell you what to do, like Meetup does:
2. Condescending language/blaming the user
Don’t scare the user into thinking the problem is worse than it is. Don’t make them feel stupid, either. It’s not their fault.
It is also important to be humble, admit you’ve made a mistake if you have. However, even if it is a user error we’re dealing with, NEVER blame the user.
They even gave a hyperbolic example:
UX Movement cautions against using negative words: “negative words can make users feel like they’ve made a huge mistake, leading them to think the situation is worse than it is.”
They offer a few words to avoid:
3. Poor placement of error messages
UX Movement talks about this in their article on making error messages more reassuring:
Error summaries magnify the seriousness of the mistakes when they’re grouped in a long bulleted list. When most users see that many errors at once, they’ll likely give up and forget about fixing them.
What’s more intimidating than seeing something like this after you hit “Submit”?
If you’re not planning to use inline validation, make it clear where the error occurred. The positioning of error messages is important but rarely considered. Here’s how Usabilla put it:
Finally, the positioning of your error messages are key. This all comes down to good User Experience design practice. Logical positioning not only saves you further detailing the situation, but also allows the user to quickly see where they are going wrong and – that word again – recover!
The following example is better than placing it all at the top, but it’s still ambiguous (e.g., “name cannot be empty” is between the first and last name):
Users need to know where the error occurred. As Hazel Bolton of Formisimo noted, Netflix displays error messages above the form and only underlines the error field in orange. As she said, “the error could be missed or the fields hard to locate.”
Material Design has some documentation on this.
4. Unclear expectations
This mistake is so common—and so important to get right. Even if you have a nice, apologetic message, place it in the right spot, and make it clear what went wrong, you’ll still anger users if it’s unclear what they’re supposed to do next.
Many error messages don’t give you a solid next step. Take the example from Spirit Airlines. They could’ve given me a few options such as “Account recovery” or “Have an account? Log in here.”
Instead, they just said my email had already been registered.
A better option comes from Wells Fargo (surprisingly):
A superior error messages educates the user on how to fix it. Look at how MailChimp suggests a solution to the problem:
Even better, if you’re not flexible with the format of certain data, like phone numbers and zip codes (which you should be), it’s nice to let users know what to expect upfront. To do that, you can write some microcopy.
Use microcopy to prevent errors
Microcopy is defined as “the small bits of text/copy that help instruct and alleviate the concerns of your users.” It can help prevent form errors before they ever happen.
For example, Joshua Porter noticed that he got a ton of form errors on the “enter billing information” page. So, he added a tiny bit of copy to remind users to enter the billing address associated with their credit card. The errors went away, “thus saving support time and increasing revenue on the improved conversion.”
We recently experienced another example where microcopy could have helped. Peep was trying to fill out a form on a venue’s website to get a quote for an event.
However, he got a big red message saying, “There was a problem with your submission.” at the top of the page—a message plagued with ambiguity.
The error? He had entered a range of guests (rational choice, seeing as it’s hard to state an exact number of guests), but the form accepted only a single number. Of course, they didn’t mention this before he hit “submit.”
Microcopy that told users to enter a single number could’ve helped. (Though, with this example, their form has bigger problems than a lack of microcopy).
Error message best practices
Good error messages and bad ones result in wildly different user behavior. Read this anecdote from UX pro Jennifer Aldrich:
While I can’t tell you exactly what text, placement, color, timing, etc., will work on your site, I can tell you some design staples and best practices. Then, you can dive into some usability research, form analytics, and testing to figure out what works best.
NN/g offered the following best practices for error messages nearly two decades ago. They still hold up:
- Visible and highly noticeable, both in terms of the message itself and how it indicates which dialogue element users must repair.
- Preserve as much as the user’s work as possible. Let users correct errors by editing their original action instead of having to do everything over again. For example, in presenting search results, show a search box with the user’s original query terms to facilitate revisions. If no hits were found, let users search a wider scope with a single click.
- Reduce the work of correcting the error. If possible, guess the correct action and let users pick it from a small list of fixes. For example, instead of just saying “city and zip code don’t match,” let users click on a button for the city that matches the zip code they entered.
The 4 H’s of error messages
UXmas has a helpful framework for error messages that they’ve dubbed “the 4 H’s.” Error messages need to be:
UXMas says the number one rule “is to make sure your error messages sound like they’ve been written for humans.” In other words, don’t do this::
Sounds like a robot wrote it.
Also, avoid jargon and technical/nerd speak (unless that’s your audience, I guess). Here’s what that looks like:
According to UXmas, three factors go into making an error message helpful:
- Is it visible?
- Does it explain clearly what went wrong?
- Does it help the user recover?
We talked about this above. Position your error messages in an intuitive way. Make them red and clearly visible. Explain the problem. Offer a solution.
UXmas says “keeping your tone light-hearted can help to keep the user on-side—especially if this suits the tone of your brand.”
However, humor is contextual. It might frustrate them if you make light of their errors. It might work well. A 404 page is a great place to add some light-hearted humor (and a strategic redirect):
Yahoo has an amazing example of humor in their form validation:
This one is easy: Don’t blame the user. We already talked about this above. Take the blame. Apologize and offer a solution.
What about inline validation?
Inline validation is a beautiful way to find, alert, and correct errors in real time. Instead of waiting until you press “submit” to learn of an error, you find out right away.
Here’s an example of inline validation:
The research on inline validation is solid. Luke Wroblewski tested inline validation (in 2009) against a control (after-submit validation). Though the sample was small, he found the following results with the inline version:
- 22% increase in success rates;
- 22% decrease in errors made;
- 31% increase in satisfaction rating;
- 42% decrease in completion times;
- 47% decrease in the number of eye fixations.
Not bad. Look into inline validation for your forms. A good example of inline validation is Booking.com:
How to track form errors
It’s nice to implement best practices, but it’s even nicer to figure out where people are falling off on your specific form. How do we do that? Well, we have to set up some way to measure form analytics, error messages, abandonments, and completions.
You can use the average corrections per form starter as a baseline. The goal, of course, is to reduce the number of corrections on a form field (and thereby reduce friction):
Tracking in Google Analytics
“Employ a series of custom events on your form with each event representing a field on that form. Your category should define which form is flagging errors; your action should define each form field; and your label can be dynamic, pulling in both a description of the validation rule that triggered the error and the value entered that broke the rule, separated by a pipe (i.e., “|”). This one may require developer assistance.
Once set up, you can then dive into a custom report that quantifies and stratifies the most critical errors on your forms. At that point, you can assess the root causes of the errors by inspecting the values users are entering. Finally, you should then either relax your validation logic or include better help text to minimize the number of errors impeding your most important conversion activities.”
More recently, Phil Pearce shared a method to track form interactions as part of a micro funnel, using Google Analytics or Google Tag Manager.
Designing error messages is all about limiting the frustration users feel with your form. If they’re too stressed—too much cortisol builds up—you risk them giving up to go watch Netflix or something. There are too many better things to do than deal with a crappy, complex, condescending form.
So, yes, do usability research yourself, but start with these error message best practices:
- Don’t blame the user.
- Write like a human, not a robot.
- Make sure errors are clear and messages are positioned intuitively.
- Make sure users know how to fix said errors.
- Don’t list all errors at the top of the page. Inline validation is a good solution.
The post Error Messages: Examples, Best Practices & Common Mistakes appeared first on CXL.