[
http://jira.magnolia-cms.com/browse/MGNLFORM-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Bärfuss updated MGNLFORM-79:
------------------------------------
Fix Version/s: 1.2.4
(was: 1.2.3)
> Cannot (easily) provide custom error message with custom validator
> ------------------------------------------------------------------
>
> Key: MGNLFORM-79
> URL: http://jira.magnolia-cms.com/browse/MGNLFORM-79
> Project: Magnolia Form Module
> Issue Type: Improvement
> Affects Versions: 1.1.4, 1.2.1
> Reporter: Felix Rabe
> Assignee: Tobias Mattsson
> Priority: Major
> Fix For: 1.2.4
>
> Attachments: Screen shot 2011-02-08 at 11.31.08 AM.png
>
>
> I've created a new module (magnolia-module-enterprise-validation) in which
> I've implemented a new validator. (This validator is to be shipped
> separately from the Form module.)
> At the moment, there is no straightforward way to show a custom error message
> upon failed validation for this validator - the default "invalid input" is
> not appropriate for this validator. I.e., it is not possible for the
> validator to show a custom error message in this setup:
> - Add the validator to config:/modules/form/config/validators as
> 'enterpriseEmail' (using a bootstrap file)
> - Use the validator for a form field by selecting it there.
> Showing a custom error message would require unneccessarily invasive changes
> to the form as a whole.
> A workaround is to show the default error message, but add a prominent hint
> next to the validated field like: "Addresses from free email providers will
> not be accepted."
--
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/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------