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

Question type Drag and drop into text undefined notice for gap in question and answer slot

    XMLWordPrintable

Details

    • MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • Hide
      1. Create a course.
      2. Go to the question bank.
      3. Click Add a new question link.
      4. Select Drag and drop into text.
      5. Fill in the form:
        • Question name: Test question
        • Question text: The [[1]] sat on the [[3]].
        • Choice 1 Answer: cat
        • Choice 2 Answer: [leave this blank/empty]
        • Choice 3 Answer: mat
      6. Click Save changes.
      7. Choose the 'Preview' action for the question.
      8. Verify the question displays without errors, and you can get it right.
      9. Close the preview tab.
      10. Choose the 'Edit question' action for the question.
      11. Verify that the question now has question text: The [[1]] sat on the [[2]].
      12. Verify lower down the form, the two choices are now in spaces 1 and 2.

      Repeat these steps with the 'Select missing words' question type. (You can start at step 3.)

      Show
      Create a course. Go to the question bank. Click Add a new question link. Select Drag and drop into text. Fill in the form: Question name: Test question Question text: The [ [1] ] sat on the [ [3] ]. Choice 1 Answer: cat Choice 2 Answer: [leave this blank/empty] Choice 3 Answer: mat Click Save changes. Choose the 'Preview' action for the question. Verify the question displays without errors, and you can get it right. Close the preview tab. Choose the 'Edit question' action for the question. Verify that the question now has question text: The [ [1] ] sat on the [ [2] ]. Verify lower down the form, the two choices are now in spaces 1 and 2. Repeat these steps with the 'Select missing words' question type. (You can start at step 3.)

    Description

      In a Drag and Drop Into Text question type, a user can can add question answer slot by accidentally or intentionally leaving a gap. An example of which can be:

      Question name: DDiT
      Question text: The colours [[1]] and [[3]] are primary colours.
      Choice 1 Answer: Yellow
      Choice 2 Answer: [leave this blank/empty]
      Choice 3 Answer: Blue

      When this question is saved. The actual answers saved are only Choice1[Yellow] and Choice2[Blue]. Note that Blue was moved from 3 to 2.

      This causes a mismatch in the slot and answer as the question text still expects [[1]] and [[3]]. 

      Attachments

        Activity

          People

            timhunt Tim Hunt
            jebarvia Joshua Ebarvia
            Mark Johnson Mark Johnson
            Adrian Greeve Adrian Greeve
            Amaia Anabitarte Amaia Anabitarte
            Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              13/Jul/20

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 20 minutes
                3h 20m