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

Static form elements cannot be hidden using hideIf and disabled using disabledif

XMLWordPrintable

    • 2
    • Team Hedgehog 2024 Sprint 2.2, Team Hedgehog 2024 Sprint 2.3

      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.

            meirza.arson@moodle.com Meirza
            dobedobedoh Andrew Lyons
            David Woloszyn David Woloszyn
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 5 hours, 20 minutes
                1d 5h 20m

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