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

hideIf does not disable all editor related fields

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.0
    • Forms Library
    • MOODLE_500_STABLE
    • MDL-85313-main
    • Hide
      1. Install https://github.com/rezaies/moodle-profilefield_conditional
      2. Go to Site administration > Users > Accounts > User profile fields
      3. Create a "Text area" profile field
        • Short Name = t1
        • Name = t1
      4. Create a "Conditional field" profile field
        • Short Name = c1
        • Name = c1
        • Menu options: A and B (on separate lines)
        • Click on the "configure conditions" button
          • Set t1 as hidden when B is selected
        • Save the form
      5. Log in as a user
      6. Edit profile field
      7. Set c1 to B and save changes
      8. Verify that there is no error
      Show
      Install https://github.com/rezaies/moodle-profilefield_conditional Go to Site administration > Users > Accounts > User profile fields Create a "Text area" profile field Short Name = t1 Name = t1 Create a "Conditional field" profile field Short Name = c1 Name = c1 Menu options: A and B (on separate lines) Click on the "configure conditions" button Set t1 as hidden when B is selected Save the form Log in as a user Edit profile field Set c1 to B and save changes Verify that there is no error
    • Hide

      Code verified against automated checks.

      Checked MDL-85313 using repository: https://github.com/rezaies/moodle.git

      More information about this report

      Built on: Tue Apr 29 14:39:17 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-85313 using repository: https://github.com/rezaies/moodle.git main (0 errors / 0 warnings) [branch: MDL-85313-main | CI Job ] More information about this report Built on: Tue Apr 29 14:39:17 UTC 2025

      MDL-68540 implemented hideIf functionality for the editor fields. but it does not disable all editor related fields.

      This issue was reported first by Marina at MDL-68540 and I was able to replicate as well.

      To be able to replicate and test any future fix, you can

      1. Install the https://github.com/rezaies/moodle-profilefield_conditional plugin
      2. Create an editor user profile field
      3. Create a conditional field (options = A and B) and hide the editor field if A is selected.
      4. Log in as a user and edit profile
      5. Select A for the conditional field and submit the form

            rezaie9 Shamim Rezaie
            rezaie9 Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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