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

Form repeat elements have repeating 'id' attributes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.4.5, 4.5
    • Forms Library
    • MOODLE_404_STABLE, MOODLE_405_STABLE

      We will provide detailed reproduction steps on Moodle LMS (or a test file) shortly.

      When repeat_elements() is used in dynamic forms, all element ids are the same. For example, you have a "name" field in each group and 'id' attribute of the html element will be the same for all "name" fields.

      This breaks for example <label for=""> elements for the checkboxes, and also fails accessibility.

      For some reason it is not a problem with date fields, only with 'text' and 'checkbox' (and maybe some others)

            Unassigned Unassigned
            marina Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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