Hi folks, 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? Thanks for any info! Sean -- View this message in context: http://www.nabble.com/ALT-Attribute-Requirement-tp18781065p18781065.html Sent from the Magnolia - User mailing list archive at Nabble.com. ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/ ----------------------------------------------------------------
