From: Joao C. <joa...@ho...> - 2004-03-31 14:57:17
|
Here's the thing... The default error message displayed is easy to change into anything our hearts desire, but using the field name is usually not the nicest way of putting it to the user - e.g. "Make sure that field 'SomeFieldName' isn't empty". I would like it to print something exactely like that but using a 'prettyer name', like 'Some Field Name' (afterall, the user doesn't need to know how I name my fields) for the field. Of course you may say, just use the message="blablabla 'Some Field Name'". Sure that works nice... But the day I decide to change my error message, I would like to change it in 1 place instead of scavenging through all my templates manually replacing the message. Here's what I suggest... if some tag has the attribute prettyname, use it instead of the name. Oh and store this somewhere, for validators that need to access other fields can use it. _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |