14

As a UI architect, I am always wondering about the best format to display errors and notifications to users.

Which of the following examples is the best format?

  • Name is required
  • Name cannot be empty
  • Please enter name
Patrick McElhaney
  • 14,143
  • 9
  • 49
  • 67
Pir Abdul
  • 2,280
  • 3
  • 23
  • 30

5 Answers5

26

There is a very simple rule that I use for myself: Error messages must not display error messages, they must display a solution message.

The user does not care what is wrong and why, he simply wants the issue solved.

Bart Gijssens
  • 17,607
  • 4
  • 49
  • 62
4

I'd use something like, "You must enter your name".

It's always good to keep things short, but the most important thing is that the messages are easy to understand. I've worked in places where the designers don't like how the error messages look, that they take up too much space, but most users won't see the error messages, so I think it's a case where usability, or in this case, intelligibility, is more important than design.

puppybeard
  • 528
  • 2
  • 7
  • the messages is displaying in alert box for your information – Pir Abdul Jun 14 '11 at 08:35
  • In that case, I'd say be as clear as possible. It can be useful to highlight the form fields which need the information.

    If you don't mind using a jQuery plugin, I suggest that you consider this: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ if you have not already done so.

    – puppybeard Jun 14 '11 at 08:59
  • actually the higher management want alert box. typical alert box of internet explorer. – Pir Abdul Jun 14 '11 at 09:09
  • I feel your pain. At least, alert() is very reliable. – puppybeard Jun 14 '11 at 12:46
  • I'm not sure that "you"/"your" contribute much to the clarity of the error message. Also, in an alert box, phrasing should be in the X is wrong for reason Y -- whenever I see you must, my gut reaction is "but I did already!"... even if I'm wrong. – dbkk Jun 14 '11 at 19:51
  • I believe "you must" sounds a bit harsh. It is also important not to make things too short. One could argue that in "You must enter your name" the first 2 words are also redundant. I don't agree. While messsages must be short they must still form sentences with a subject, a verb etc. Also mind the localization aspect. When messages are too short or unclear when taken out of context, things tend to get translated incorrectly. To summarize: I prefer "Please enter your name". – Bart Gijssens Sep 20 '11 at 07:47
4

You need to play off:

  • using the least possible words

  • using the simplest possible words

  • providing enough information for the user to be able to 'solve the problem'

PhillipW
  • 11,290
  • 2
  • 33
  • 55
3

I would go with 'Please enter name' because it indicates required action.

And I agree with puppybeard that you should use as much words as needed for user to understand the message correctly. I would also highlight the field with error and if possible set focus (cursor) to that field. It's a bit more work, but usually very helpful for the user.

Peter Koman
  • 102
  • 2
3

Totally agree with Bart.

I always suggest to favor friendly message just like if it was a real human talking to you.

mockup

download bmml source – Wireframes created with Balsamiq Mockups

Renaud
  • 7,613
  • 4
  • 28
  • 37