Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-11665

Display validator message per document field

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.1.0
    • None
    • None
    • 8
    • Tiger
    • Tiger Sprint 200, Tiger Sprint 201

    Description

      Currently, one or multiple validation messages are always shown on top of a document with a generic description (no indication of which field is invalid).

      As a first step of supporting existing and custom validators in the visual editor, we align the validator support in Wicket with the validator support in Angular; this shows the validation message directly below the invalid field. In case of multiples, it is rendered after the last field.

      In addition, there should be a summary on the top of the document displaying the names of the violating fields.

      This means that all existing generic messages should be updated to be field specific. Custom validators will keep the old behavior of printing a validation message on top. To differentiate between messages per field and messages on top, we will mark existing built-in validators with a new property scope = field using the following update script

      for all known-validator-names
        if plugin.class matches expected default
          add property scope=field

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abogaart Arthur Bogaart
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: