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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • None
    • Forms Library
    • MOODLE_24_STABLE

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              rezeau Joseph Rézeau
              rezeau Joseph Rézeau
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: