Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6114

RichTextField validators showing error messages before submission and ignores value when submitted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 6.2.2
    • dialogs
    • None

    Description

      Validation errors for richTextFields are shown as soon as the dialog is opened.

      Attempting to find a workaround for MGNLUI-6112 I added a validator to a richTextField. As soon as the dialog is opened, the error message is shown without giving the user a chance to enter anything.

      Example:

          test: 
            $type: richTextField
            validators: 
              mandatory: 
                $type: regexpValidator
                pattern: ".+"
                errorMessage: This field is required
      

      This is also true using emailValidator.

      When a value is entered, it has no effect: the error message remains and the form cannot be submitted. The same regex, .+, works as expected to validate any character has been entered in a textField.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                chris.jennings Chris Jennings
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD