Add customizable validation message to controls
-----------------------------------------------

                 Key: MAGNOLIA-3879
                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3879
             Project: Magnolia
          Issue Type: Improvement
      Security Level: Public
          Components: admininterface
    Affects Versions: 4.4.5, 4.4.4, 4.4.3, 4.4.2
            Reporter: Richard Unger
            Assignee: Philipp Bärfuss


The "default" validation message is too general to be helpful for editors. 
Especially when the validation involves things like a 25 character limit, the 
message should really point out what is wrong ("Your input is too long. Please 
use a maximum of 25 characters."). 

We use the field description to inform the user about the expected format, but 
people still make mistakes, and are then confused by the generic validation 
message.

This is particularly important when setting validationPattern on a ckEditor 
field. Since the (invalid) field contents are echoed in the message, and 
ckEditor fields typically have long content (and in HTML), the standard 
validationMessage does not fit in the javascript dialog, and is completely 
incomprehensible to the end user.

It would be a nice (and easy to add) feature to allow customizing of the 
validation message, to complement the validationPattern setting.

Solution:

add a "validationMessage" property to controls 
(info.magnolia.cms.gui.dialog.DialogControlImpl).

If the validation fails for the validationPattern, the control would then show 
the supplied validationMessage in the alert.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to