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

Impossible to use disabledIf on a radio element inside a group in mform

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 2.4
    • Forms Library
    • MOODLE_24_STABLE

      See this discussion: https://moodle.org/mod/forum/discuss.php?d=221190

      It is currently not possible to use disabledIf on individual radio buttons inside a group in a moodle form.

      The patch provided here uses a combination of the group name (group name+button name) and individual radio button value to trigger the disabled action.
      In the moodle form, disabledIf should use the same combination of group+radio button name + button value.
      This is only proposed as a provisional workaround. A more elegant solution will have to be found.

            rezeau Joseph Rézeau
            rezeau Joseph Rézeau
            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.