[MAGNOLIA-2299] Optionally Required Dialog Fields Created: 04/Aug/08  Updated: 04/Nov/15  Resolved: 04/Nov/15

Status: Closed
Project: Magnolia
Component/s: gui
Affects Version/s: 3.6.1
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Sean McMains Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

Posting this to a ticket, per Gregory's suggestion:

My original message:

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?

And Greg's reply:

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



 Comments   
Comment by Magnolia International [ 20/Jan/09 ]

Extended dialog validations probably won't be implemented before we overhaul the gui.
Unless kind souls provide patches.

Comment by Michael Mühlebach [ 04/Nov/15 ]

Given the thousands of other issues we have open that are more highly requested, we won't be able to address this issue in the foreseeable future. Instead we will focus on issues with a higher impact, and more votes.
Thanks for taking the time to raise this issue. As you are no doubt aware this issue has been on our backlog for some time now with very little movement.
I'm going to close this to set expectations so the issue doesn't stay open for years with few updates. If the issue is still relevant please feel free to reopen it or create a new issue.

Generated at Mon Feb 12 03:35:21 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.