Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2299

Optionally Required Dialog Fields

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Minor
    • None
    • 3.6.1
    • gui
    • None

    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

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              seanmctex Sean McMains
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD