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

Allow filtered content in answers for Drag-and-drop questions

XMLWordPrintable

    • MOODLE_402_STABLE
    • MOODLE_405_STABLE
    • MDL-78662-master
    • Hide

      Scenario 1: Preview question page

      Setup

      1. Go to Site administration -> Filter -> Manage filters
      2. Set Mathjax Active "On" and Apply to "Content and headings"               

      Drag and drop into text question type:

      1. Create a Drag-drop into-text question with a Mathjax equation in the answer or import this question to question bank questions-THC-Q8 Drag Drop into text-20231124-0305.xml
      2. Preview the question in the question bank
      3. We should see the answer with the mathjax equation displayed
      4. Drag-drop the item with mathjax to answer
      5. Confirm:
        1. The system supports MathJax notation and recognizes the equation during and after attempting
        2. The drag-drop item with Mathjax has the same size as other items in the same group.
        3. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape)
        4. It should work as a normal item. We can drag it to answer.

      Drag and drop markers question type:

      1. Tick on the MathJax checkbox and press Save Changes to enable the filter.
      2. Create a Drag and drop markers question with a Mathjax equation in the answer or import this question to the question bank questions-THC-Q6 Drag Drop Marker-20231124-0303.xml
      3. Preview the question in the question bank
      4. We should see the drag-drop with the mathjax equation displayed
      5. Drag-drop the item with mathjax to answer
      6. Confirm:
        1. The system supports MathJax notation and recognizes the equation during and after attempting
        2. The drag-drop item with Mathjax has the same size as other items in the same group.
        3. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape)
        4. It should work as a normal item. We can drag it to answer.

      Drag and drop onto image question type:

      1. Tick on the MathJax checkbox and press Save Changes to enable the filter.
      2. Create a Drag and drop onto image question with a Mathjax equation in the answer(to allow Mathjax equations, we need to change the Drag item type to "Draggable text" or import this question to the question bank questions-THC-Q09 DandD onto images-20231124-0305.xml
      3. Preview the question in the question bank
      4. We should see the drag-drop with the mathjax equation displayed
      5. Drag-drop the item with mathjax to answer
      6. Confirm:
        1. The system supports MathJax notation and recognizes the equation during and after attempting
        2. The drag-drop item with Mathjax has the same size as other items in the same group.
        3. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape)
        4. It should work as a normal item. We can drag it to answer.

      Scenario 2: Add those questions above to a quiz

      1. Attempt the quiz
      2. Answer the question by drag-drop items.
      3. Confirm:
        1. The system supports MathJax notation and recognizes the equation during and after attempting
        2. The drag-drop item with Mathjax has the same size as other items in the same group.
        3. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape)
        4. It should work as a normal item. We can drag it to answer.

      Scenario 3: Multilang filter:

      1. Enable the multilang filter for content and headings.
      2. Install at least one other language, to make test cases work, you need Russian.
      3. Have the site language set to English.
      4. Install the https://moodle.org/plugins/filter_multilang2 plugin.
      5. In a course, go to question bank and import the attached file [^questions-quiz1-MDL-61286-20221214-1556.xml].

      Check preview

      1. In the question bank go to the new imported category MDL-61286 that contains the imported questions.
      2. In the action list select preview on the first question.
      3. In the peview window check that you only see the labels in English.
      4. Drag and drop the correct answers into the spaces and click "Submit and finish" button.
        1. You should see the message "Your answer is correct."
      5. Open the Preview section and click the button "Start again with these options".
      6. When the page has reloaded edit the URL field and add &lang=ru at the end of that URL and hit enter.
        1. In the peview window check that you only see the labels in Russian.
      7. Drag and drop the correct answers into the spaces and click "Отправить и завершить" button.
      8. You should see the message "Your answer is correct."
      9. Edit the URL field and add &lang=en at the end of that URL and hit enter.
        1. You see again the submitted data in English. Click the button "Close preview".
      10. Go back to step 2 and continue with the next question.
      Show
      Scenario 1: Preview question page Setup Go to Site administration -> Filter -> Manage filters Set Mathjax Active "On" and Apply to "Content and headings"                Drag and drop into text question type: Create a Drag-drop into-text question with a Mathjax equation in the answer or import this question to question bank questions-THC-Q8 Drag Drop into text-20231124-0305.xml Preview the question in the question bank We should see the answer with the mathjax equation displayed Drag-drop the item with mathjax to answer Confirm : The system supports MathJax notation and recognizes the equation during and after attempting The drag-drop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape) It should work as a normal item. We can drag it to answer. Drag and drop markers question type: Tick on the MathJax checkbox and press Save Changes to enable the filter. Create a Drag and drop markers question with a Mathjax equation in the answer or import this question to the question bank questions-THC-Q6 Drag Drop Marker-20231124-0303.xml Preview the question in the question bank We should see the drag-drop with the mathjax equation displayed Drag-drop the item with mathjax to answer Confirm : The system supports MathJax notation and recognizes the equation during and after attempting The drag-drop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape) It should work as a normal item. We can drag it to answer. Drag and drop onto image question type: Tick on the MathJax checkbox and press Save Changes to enable the filter. Create a Drag and drop onto image question with a Mathjax equation in the answer(to allow Mathjax equations, we need to change the Drag item type to "Draggable text" or import this question to the question bank questions-THC-Q09 DandD onto images-20231124-0305.xml Preview the question in the question bank We should see the drag-drop with the mathjax equation displayed Drag-drop the item with mathjax to answer Confirm : The system supports MathJax notation and recognizes the equation during and after attempting The drag-drop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape) It should work as a normal item. We can drag it to answer. Scenario 2: Add those questions above to a quiz Attempt the quiz Answer the question by drag-drop items. Confirm : The system supports MathJax notation and recognizes the equation during and after attempting The drag-drop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape) It should work as a normal item. We can drag it to answer. Scenario 3: Multilang filter: Enable the multilang filter for content and headings. Install at least one other language, to make test cases work, you need Russian. Have the site language set to English. Install the  https://moodle.org/plugins/filter_multilang2  plugin. In a course, go to question bank and import the attached file  [^questions-quiz1-MDL-61286-20221214-1556.xml] . Check preview In the question bank go to the new imported category  MDL-61286  that contains the imported questions. In the action list select preview on the first question. In the peview window check that you only see the labels in English. Drag and drop the correct answers into the spaces and click "Submit and finish" button. You should see the message "Your answer is correct." Open the Preview section and click the button "Start again with these options". When the page has reloaded edit the URL field and add &lang=ru at the end of that URL and hit enter. In the peview window check that you only see the labels in Russian. Drag and drop the correct answers into the spaces and click "Отправить и завершить" button. You should see the message "Your answer is correct." Edit the URL field and add &lang=en at the end of that URL and hit enter. You see again the submitted data in English. Click the button "Close preview". Go back to step 2 and continue with the next question.

      As a question author, I want to be able to use TeX in Drag and Drop Word into Sentence questions so that I have a greater range of question types when I use equations.
      We don't support TeX currently - it displays the input as shown below. 

        1. (1) 1 Passed -- (Main)MDL-78662.png
          (1) 1 Passed -- (Main)MDL-78662.png
          90 kB
        2. (1) 2 Passed -- (Main)MDL-78662.png
          (1) 2 Passed -- (Main)MDL-78662.png
          146 kB
        3. (1) 3 Passed -- (Main)MDL-78662.png
          (1) 3 Passed -- (Main)MDL-78662.png
          92 kB
        4. (2) 1 Passed -- (Main)MDL-78662.png
          (2) 1 Passed -- (Main)MDL-78662.png
          154 kB
        5. (3) 1 Passed -- (Main)MDL-78662.png
          (3) 1 Passed -- (Main)MDL-78662.png
          53 kB
        6. MDL-78662_emoticonsFilter_adminFilter.png
          MDL-78662_emoticonsFilter_adminFilter.png
          11 kB
        7. MDL-78662_emoticonsFilter_app.jpg
          MDL-78662_emoticonsFilter_app.jpg
          44 kB
        8. MDL-78662_emoticonsFilter_browser.png
          MDL-78662_emoticonsFilter_browser.png
          168 kB
        9. MDL-78662_emoticonsFilter_browser2.png
          MDL-78662_emoticonsFilter_browser2.png
          61 kB
        10. MDL-78662_emoticonsFilter_quizFilter.png
          MDL-78662_emoticonsFilter_quizFilter.png
          73 kB
        11. MDL-78662_MathJax_app_01.jpg
          MDL-78662_MathJax_app_01.jpg
          92 kB
        12. MDL-78662_MathJax_app_02.jpg
          MDL-78662_MathJax_app_02.jpg
          100 kB
        13. MDL-78662_MathJax_app_03.jpg
          MDL-78662_MathJax_app_03.jpg
          83 kB
        14. MDL-78662 - Activity names auto-linking_app_attempt.jpg
          MDL-78662 - Activity names auto-linking_app_attempt.jpg
          62 kB
        15. MDL-78662 -Activity names auto-linking_app.jpg
          MDL-78662 -Activity names auto-linking_app.jpg
          81 kB
        16. MDL-78662 -Activity names auto-linking_broswer.jpg
          MDL-78662 -Activity names auto-linking_broswer.jpg
          123 kB
        17. MDL-78662 - Convert URLs into links and image_app.jpg
          MDL-78662 - Convert URLs into links and image_app.jpg
          84 kB
        18. MDL-78662 - Convert URLs into links and image_browser.jpg
          MDL-78662 - Convert URLs into links and image_browser.jpg
          71 kB
        19. MDL-78662 - Convert URLs into links and image_source_browser.jpg
          MDL-78662 - Convert URLs into links and image_source_browser.jpg
          38 kB
        20. questions-THC-Q09 DandD onto images-20231124-0305.xml
          61 kB
        21. questions-THC-Q6 Drag Drop Marker-20231124-0303.xml
          262 kB
        22. questions-THC-Q8 Drag Drop into text-20231124-0305.xml
          3 kB
        23. questions-THC-Q8 Drag Drop into text-20231124-0305-1.xml
          3 kB

            vuvanhieu143 Hieu Vu
            vuvanhieu143 Hieu Vu
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            6 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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