07 November 2008

Separate the Text from the Code

Documenting all the inputs and outputs is a good strategy when developing a web application. Every piece of textual content should also be identified and stored centrally. This leads to consistency and means identical text can be replaced globally and alternative translations provided more easily. Remember, the context is always important in the decision how to split up text, and how to translate it.

The text of instruction, confirmation and error messages should be handled in the same way... and of course it needs to be changed to something appropriate. I came across the following rather unhelpful message in a Siebel customer relationship management system:

A web form with an error message 'Wrong field values or value types detected in field Description.  Please re-enter your field values.  If you need additional assistance, please refer to the documentation. (SBL-UIF-002999)'

The users of this public system are about as likely to have its documentation to refer to as go on a trip to the moon. Perhaps during development and acceptance testing, not all possible conditions were tested, so what else wasn't checked? It seems this should instead say something like:

Sorry, you have entered too much text in the Description field. Please shorten the text or provide a brief summary and upload the full text as a file attachment.

Of course, telling the user first there is some sort of length limitation would be better. If all such pieces of text are located in a single repository (database table, configuration file, and so on), it can be easier to ensure that any system defaults are replaced with user-friendly and understandable messages. The only saving grace here is that the message implies the system might be doing some sort of type, length checks on data input by users.

A reminder for auditors: check what default text is stored in a system. And, make sure that changes to these text items follow a change control process.

When output text is scattered through developer's code, it is not usually a good sign. Using development frameworks that already have secure and tested error handling modules and separate the logic from words and layout are the way forward.

Update 19th November 2008: Christian Watson has posted a message about Error Message Design Showcase in his SmileyCat Web Design Blog giving an overview of how many sites handle the display of form entry error messages.

Posted on: 07 November 2008 at 09:09 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

Comments

Comments are filtered automatically and should appear shortly after they been checked.

Post a comment
Confirm acceptance and understanding of the terms of use
New posts to this thread will be sent to your email address
Separate the Text from the Code
http://www.clerkendweller.com/2008/11/7/Separate-the-Text-from-the-Code
ISO/IEC 18004:2006 QR code for http://clerkendweller.com

Page http://www.clerkendweller.com/2008/11/7/Separate-the-Text-from-the-Code
Requested by 38.107.191.105 on Friday, 10 September 2010 at 16:35 hrs (London date/time)

Please read our terms of use and obtain professional advice before undertaking any actions based on the opinions, suggestions and generic guidance presented here. Your organisation's situation will be unique and all practices and controls need to be assessed with consideration of your own business context.

Terms of use http://www.clerkendweller.com/page/terms
Privacy statement http://www.clerkendweller.com/page/privacy
© 2008-2010 clerkendweller.com