Interested in my consulting services? Head over to Miskeeto.com.

Design Stories: Character counters

Continuing the Design Stories series, here’s a look at the design of character counters (the little text messages used to indicate how many characters can be entered into a text field).

Many sites skimp on the grace that character counters can offer and use something that takes the least amount of work to build, but can be quite frustrating for users. For example, an input field with a set character limit should communicate that limit to users, but many sites leave this important element out. When this happens, you often end up with the ability to enter anything you like, even though the entire string cannot be stored.
charCounter_1.jpg
In these cases, users are informed of their mistake via an error message.

charCounter_21.jpg

This method blames the user, essentially telling him that he should have known before pressing the Submit button that he couldn’t enter more than 50 characters. This is no good.

In another method, developers prevent users from being able to enter more characters than the limit allows, and users simply run out of space. So you’re typing along, humming a happy tune, and then your keyboard appears to stop working.

charCounter_31.jpg

Also not good.

Some sites, hip to the notion that we should communicate to users what’s going on, have opted to use a form of a poka-yoke device. Instead of waiting until the user presses Submit to show an error, these sites warn the user using a bit of instructive text.

charCounter_41.jpg

This helps. It’s definitely better than the previous solutions (which, clearly, are not solutions at all). But there’s still a big problem. Sure, we’ve warned the user that she can only enter 50 characters, but we’ve also made it her responsibility to count the characters herself.

With all this in mind, the best solution is to present a decrementing number of characters, telling the user every step of the way how many characters can still be entered.

charCounter_51.jpg

charCounter_61.jpg

Now, we accomplish several good things. First, the user is aware that there is a character limit from the very beginning. Second, the user knows with every keystroke how many characters can still be entered into the field. Finally, we’ve completely eradicated the user’s risk of hitting the Submit button and getting an error.

Instructive text is a good thing, but when it comes to character limits, instructive text with a decrementing variable makes a far superior poka-yoke device, guaranteeing our users will successfully get past this form element and onto the next step.

Posted by Robert on December 15th, 2006





4 comments

Michael Zuschlag said:

Excellent design. My only addition would be to suggest that the character countdown only appear after the user has type, say, 75% of the maximum length. Most character field sizes are chosen to be sufficient for all but the most loquacious users. We wouldn’t want to clutter and distract the vast majority of our users with the countdown that’s only going to be needed by a tiny few. For all users, the size of the text box itself provides cue on the approximate maximum length of text expected.

Posted on December 18th, 2006


Robert said:

Michael -

Nice idea! In cases where the user is writing a long review or comment of some kind, I think your suggestion is excellent. Providing the character limit is high enough that *most* people won’t encounter it, this is definitely a good solution.

That said, there’s also a lot of value in setting a clear expectation. With shorter entries, like passwords, titles, names, email addresses, and so on, it’s far more likely users will run into the character limit more frequently. Telling them up front reduces frustration later.

Thanks for your suggestion.

Posted on December 18th, 2006


Zephyr said:

The size of the textbox may be a more direct visual cue of how much text can still be typed. A non-proportional font would be needed for accuracy.

Posted on December 19th, 2006


Simon (Etre) said:

Hi Robert - great article! We’ve just published a suggested accessibility tweak on our blog and wondered what you thought of it.

Posted on December 29th, 2006


post a comment

Name (required)