Usability Heuristic #5: Don't Let Users Make Mistakes
Sure, anyone can mess up… So why does Jakob Nielsen say it's better to prevent trouble than to clean up after it? Let's find out!

The world of UX design has plenty of golden rules (just think of Hick's law, Miller's law, Tesler's law, or even the banana rule). But there's one more thing that also stands at the head of design law and order and warns us about our missteps: heuristic #5. Combined with the other heuristics, which have a whole section of our site to themselves, it helps create intuitive, user-friendly interfaces.
Heuristic #5: what is this weapon in a designer's hands?
Picture this: you've come to the tax office (yes, we agree, scary already) to fill out a tax return. Nobody gave you a good filled-in example or told you where all those numbers go or how to file the paperwork properly. And the result? Epic fail, bro! You sit down again and again, rewriting the same documents in circles, and realize it's pure stress.
Now what if it went differently? You get the documents you need, you're given all the examples, and you're warned where other people most often slip up and how to avoid it. Then, of course, you'd save your nerve cells (let's spare the poor things) and fill out all the paperwork many times faster. That's exactly how the fifth usability heuristic works.

Instagram makes active use of the fifth heuristic's principles
So much for paperwork—what about interfaces? Heuristic #5 says an interface should be designed so that errors can't happen at all, or at least so that they're as unlikely as possible. In short, it's the good old advice: better to prevent trouble than to clean up after it. It all sounds simple, but how to apply it properly is what we're about to figure out.
What's the secret to using it right?
“Are you sure you want to exit without saving?”
One of the top examples of error prevention is the confirmation dialog. Imagine you've been working in an editor for several hours and accidentally click the “Close” X. And the program, without a care for your progress and without asking about saving, just closes. That's a nightmare and a pile of work to redo. But if it had first asked, “Are you sure you want to exit without saving?” the disaster could have been avoided.
And it's really cool when the program saves all your data on its own. That's how it works in Figma or Google Docs, for example. Adobe Photoshop, on the other hand, pops up a dialog in these cases and asks whether you've perhaps forgotten that you actually need to save everything here.

Adobe Photoshop always asks about saving files
Autocorrect and hints in forms
Sometimes filling out a form on a website is quite the quest. You have to enter a ton of stuff, and it's easy to make a mistake along the way. Good designers should be asking themselves: “How can I improve forms or input fields to make the interface easy to use?” For example, when you enter an email address, the program checks for an “@.” If something's missing, a hint appears: “Hey, looks like you missed the @.”
Mailchimp uses this approach. When you type an email address into a signup form, the service automatically checks that it's spelled correctly and shows a warning if there's an error. That lets us fix it quickly and move on.

Grab Driver makes great use of form hints
Delete confirmation
Have you ever accidentally deleted a priceless file and then agonized over trying to get it back? A well-designed interface always asks: “Are you sure you want to delete this PERMANENTLY?” Especially when it's super important information.
Gmail, for example, has a check when you delete emails: if you decide to delete a message from the trash, it first shows a confirmation prompt. It seems like a small thing, but it prevents a lot of losses.

Confirming message deletion in Gmail
Restricting input
Silly as it may sound, sometimes the best way to prevent errors is simply not to let the user do anything wrong. For example, in date fields on some sites, you can only pick days from a calendar. Typing it in by hand can be harder and, of course, slower.
Or you've probably seen how on many hotel booking or ticketing sites, such as Booking, the calendar automatically blocks you from selecting past dates. That prevents an absurd mistake like booking for last year.

On Booking, the calendar won't let you select past dates
So why does it work?
And although Jakob Nielsen says in usability heuristic #3 that if users make a mistake, we should give them a chance to fix it, you have to admit it's much nicer not to make mistakes at all. When we're shown in advance where we might slip up, or offered options that rule errors out, it doesn't just make the interface easier to use—it also lowers stress (just remember the tax office above and the circles of hell that come with it, brrr). And instead of fretting over every slip, we feel supported. Yes, someone's looking out for us. And that has a positive effect on how we feel about the product.
In Google Forms, for example, you simply can't submit a form if you've skipped or forgotten the required fields. The system immediately highlights those fields in red and shows a warning, letting us know they're important and there's no getting around them.

Don't forget to fill in all the required fields in Google Forms—the system will remind you!
Or take Dropbox. If you want to delete a file, you're first warned about the deletion, and then the process takes you to the trash, where you have to enter your password to delete it for good. That makes you stop and think: “Do I really want to do this?”

Dropbox will ask several times before deleting a file
Put this safety net to use
Yes, you could say heuristic #5 is essentially a kind of safety net for the user. And although you can't shield everyone from errors completely, a good designer's job is to make sure there are as few of them as possible.
But don't forget: no matter how perfect your interface is, users will still work their wonders—don't let them back themselves into a corner!
Article updated
.jpg&w=3840&q=75)
%2520-%2520hover.jpg&w=3840&q=75)



