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

Static form elements cannot be hidden by hideIf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.5, 3.7.1
    • Fix Version/s: None
    • Component/s: Forms Library
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE

      Description

      If I add a static form element, and I want it to be hidden via hideIf, then it is not possible to do so. The static form element should not be treated any different to any other element.

      This is because there is no form element present in the pseudo element. The form dependency code currently only works on elements which are in the form.elements list.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dobedobedoh Andrew Nicols
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: