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

Form element advcheckbox does not support 'required' rule (Error message marking a required checkbox custom field)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.5, 3.6
    • Fix Version/s: 3.6.5, 3.7.1
    • Component/s: Forms Library
    • Labels:
    • Sprint:
      Internationals - 3.8 Sprint 1

      Description

      If a checkbox custom field is marked as required, moodle shows a message when marked "You must supply a value here.". You can save the value of the checkbox enabled or disabled. This happens for user and course custom fields.

      I guess for checkbox required attribute means only enable value would be accepted during validation.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Jul/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 26 minutes
                  1d 26m