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

Themes: Error message display for text area field client side form validation is not reliably updated

    XMLWordPrintable

Details

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-77883-401
    • MDL-77883-master
    • Hide

      Set up for the textarea field:

      • Navigate to User Avatar ->Preferences -> Editor preferences -> Change text editor to "Plain text area"
      • Go to Site Administrator -> Navigate to Courses -> Got to Course custom fields -> Add a new custom field -> Select  Text area -> Input anything in the required field but the field Required must change selected to Yes

      • Go to Course -> Settings -> Navigate to Settings -> Other fields
      • Tab through the custom field, entering nothing.
      • Confirm that you get an error that you need to enter a value for the custom field.

      Set up for the editor fields:

      • Go to Course -> Navigate to More -> Question bank -> Create a TRUE/FALSE question
      • Tab through the question text field, entering nothing.
      • Confirm that you get an error that you need to enter a value for the custom field.
      • Repeat the above steps but by setting your editor preferences to Atto or Tiny MCE and confirm that the validation error also is displayed when the required editor field does not have any content entered.
      Show
      Set up for the textarea field: Navigate to User Avatar ->Preferences -> Editor preferences -> Change text editor to "Plain text area" Go to Site Administrator -> Navigate to Courses -> Got to Course custom fields -> Add a new custom field -> Select  Text area -> Input anything in the required field but the field Required must change selected to Yes Go to Course -> Settings -> Navigate to Settings -> Other fields Tab through the custom field, entering nothing. Confirm that you get an error that you need to enter a value for the custom field. Set up for the editor fields: Go to Course -> Navigate to More -> Question bank -> Create a TRUE/FALSE question Tab through the question text field, entering nothing. Confirm that you get an error that you need to enter a value for the custom field. Repeat the above steps but by setting your editor preferences to Atto or Tiny MCE and confirm that the validation error also is displayed when the required editor field does not have any content entered.

    Description

      Textarea field with client-side validation is not reliably updated when we change the value of the field.

      Root cause: https://github.com/moodle/moodle/blob/master/theme/boost/amd/src/form-display-errors.js#L63

      Attachments

        Issue Links

          Activity

            People

              danghieu1407 Hieu Nguyen Dang
              danghieu1407 Hieu Nguyen Dang
              Tim Hunt Tim Hunt
              Jun Pataleta Jun Pataleta
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 10 minutes
                  1h 10m

                  Clockify

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