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

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

      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.

        Acceptance criteria

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

                Created:
                Updated:

                  Bug DoR
                  Task DoD