Menu

#15 Error messages in third person

PHP5 - New feature
open
core (8)
4
2008-01-03
2008-01-03
Nigel McNie
No

If error messages were also specified in the third person - e.g. "Post Title is required", rather than just "This field is required", then we could generate nice form-level error messages as well as the errors shown alongside elements currently. e.g.:

Your form had one or more errors, please correct them:

* Post Title is required
* Post content is required

Post Title: __________________
This field is required

Post Content: [___________________]

If this was done, then 'jserrormessage' could be replaced by 'errormessage', and a new parameter 'successmessage' could be used for successes.

This bug relates somewhat to 'readonly' mode as well - if implemented, then the default view for a form could be made readonly, you click a toggle to edit the form, have the default error handling, and the success handling goes back to readonly but with the message.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.