Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76005

Error message display for client side form validation is not reliably updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.9.17, 3.9.21, 3.11.10, 4.0.4, 4.1.2
    • Forms Library
    • None
    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE

      While investigating MDL-76003 I discovered that the display of form validation error messages for client side validation are not updated reliably. For example, when a maxlength rule is set to five and you type three characters, then click outside the input field, then focus the input field again and type at least three more characters the error message will not show up. The form submission is prevented but the user get no notification about the reason. Also the error messages don't disappear once shown but after fixing the content according to the rule. Eg. according to the example mentioned before: removing some characters from the input field to match the <5 rule and then clicking outside the field. I expect the error message to disappear but it does not.

      I encountered this bug with Chromium 106.0.5249.103 and Firefox 105.0.3 on Arch Linux with the latest Moodle master branch version and also latest Moodle 3.9. Tested with the attached script.

            Unassigned Unassigned
            jojoob Johannes Burk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.