Optionally Required Dialog Fields
---------------------------------
Key: MAGNOLIA-2299
URL: http://jira.magnolia.info/browse/MAGNOLIA-2299
Project: Magnolia
Issue Type: Improvement
Components: gui
Affects Versions: 3.6.1
Reporter: Sean McMains
Assignee: Boris Kraft
Priority: Minor
Posting this to a ticket, per Gregory's suggestion:
My original message:
{quote}
In order to better support our limited-sight users, we're rejiggering our
dialogs to require ALT attributes on images wherever possible.
We have a paragraph based on the Sample Text-Image one that comes with
Magnolia. We've having a problem implementing this behavior here because the
ALT field should only be required if someone has actually uploaded an image
-- there's no point in requiring ALT text if there's no place to put it!
Unfortunately, from what I see in DialogControlImpl.java, it appears that
only simple booleans are supported for whether or not a field should be
validated. (Though apparently one can do Regular Expression matching on the
contents of a field too, which I hadn't known about before -- nifty!)
Anyway, is there any way to make whether a field is required dependent on
whether another field is filled? Or would we pretty much have to create that
from scratch and customize the magnolia-gui module to do something like
this?
{quote}
And Greg's reply:
{quote}
Dialog validation in 3.x is *very* limited, and you've found the
limits of it. Please report this in Jira, if you don't find other
validation related issues in there; the validation process should be
completely reviewed with the new gui, so there's a good chance it will
be a least customizable ;)
{quote}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------