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

Quiz: allow the displayed question numbers to be customised

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • Hide
      1. Create a course
      2. create a quiz
      3. Create several questions including 1 or 2 descriptions
      4. Go to quiz editing page and add the questions to the quiz
      5. On the editing page verify that:
        • The real question numbers are editable and showing the automated numbering (1, 2, 3, ...)
        • Descriptions (indicated with 'i') are not editable
        • Question numbers can be edited from 1, 2, 3, ... to something like A1, A2, B1, ...
        • When the customised numbers are deleted (set to empty strings), the original automated numbering are replace automatically.
        • When question numbers are customised and question within the sections are set to be shuffled a warning is displayed.
      6. When previewing the quiz, verify that:
        • The customised numbers are showing in question information box.
        • The customised numbers are showing in the question navigation panel.
      Show
      Create a course create a quiz Create several questions including 1 or 2 descriptions Go to quiz editing page and add the questions to the quiz On the editing page verify that: The real question numbers are editable and showing the automated numbering (1, 2, 3, ...) Descriptions (indicated with 'i') are not editable Question numbers can be edited from 1, 2, 3, ... to something like A1, A2, B1, ... When the customised numbers are deleted (set to empty strings), the original automated numbering are replace automatically. When question numbers are customised and question within the sections are set to be shuffled a warning is displayed. When previewing the quiz, verify that: The customised numbers are showing in question information box. The customised numbers are showing in the question navigation panel.

      If the teacher needs to, it should be possible to change the default 1, 2, 3 question numbers to any other short strings that you like. Here is a mock-up:

      While this is occasionally necessary (for example, to match the setup of an external test you want to replicate in Moodle) this will be a rarely-used advanced feature, so it should be easy to ignore for users who are not interested in it.

      Some notes on how this will be implemented:

      • The customised question number will be stored in a new CHAR(16) column in the quiz_slots table called displaynumber. This will default to null, meaning use the default 1, 2, 3 numbering.
      • When attempting/previewing the quiz, the customised number will be displayed.
      • On the 'Questions' page there will be a visual indication of which numbers have been customised and which are default
      • The number will be come an in-place editable widget, allowing the number to be changed.
      • If the number is customsied, there will be a delete icon, to remove the customisation.
      • If the section is shuffled, it will not be possible to customise the numbers in that section. (If people want more than this, that can be added in future Improvements, but it is out-of-scope here.)

        1. mockup.png
          13 kB
          Tim Hunt
        2. image-2022-09-09-16-47-38-811.png
          1.10 MB
          Mahmoud Kassaei
        3. error_when_editing.png
          282 kB
          Jun Pataleta
        4. inplaceeditable_style_issues.png
          73 kB
          Jun Pataleta
        5. quiz-navigation-issue.png
          30 kB
          Jun Pataleta
        6. custom-display-number-gone-page-break.png
          28 kB
          Jun Pataleta
        7. custom-label-overflows-in-navigation.png
          92 kB
          Jun Pataleta
        8. qnc_edit1.PNG
          40 kB
          Mahmoud Kassaei
        9. qnc_edit2.PNG
          41 kB
          Mahmoud Kassaei
        10. qnc_edit3.PNG
          38 kB
          Mahmoud Kassaei
        11. qnc_edit1-1.PNG
          40 kB
          Mahmoud Kassaei
        12. qnc_edit2-1.PNG
          41 kB
          Mahmoud Kassaei
        13. qnc_edit3-1.PNG
          38 kB
          Mahmoud Kassaei
        14. qnc_attempt1.PNG
          30 kB
          Mahmoud Kassaei
        15. qnc_attempt2.PNG
          30 kB
          Mahmoud Kassaei
        16. 74609.mov
          15.26 MB
          Andrew Lyons
        17. boost.gif
          462 kB
          Ron Carl Alfon Yu
        18. classic.gif
          691 kB
          Ron Carl Alfon Yu
        19. MDL-74609_app_error.png
          257 kB
          Isabel Renedo Rouco
        20. inplaceeditablecolor.png
          80 kB
          Luca Bösch

            mkassaei Mahmoud Kassaei
            timhunt Tim Hunt
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 9 minutes
                1d 3h 9m

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