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

clear answer choice in multiple choice

XMLWordPrintable

    • MOODLE_15_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-5311-master
    • Hide
      Setup
      1. Log in as admin.
      2. Create a course, or use an existing one.
      3. Go to the course and create a quiz.
      4. Edit the quiz and add 3 new multiple choice questions (you can use existing questions as long they are multi choice):
        • Two questions should be One answer only.
        • One question should be Multiple answer allowed.
      5. Edit the quiz and make sure all 3 questions are in the same page.
      Test basic funcionality
      1. Log in as a admin and go the quiz.
      2. Start the attempt.
      3. Click in one of the single answer options.
      4. Make sure the Clear my choice option is now visible.
      5. Click in the Clear my choice option.
      6. Make sure the choice you choose before is not checked any more.
      7. Make sure the Clear my choice option is not visible.
      Multiple questions in the same page
      1. Still on the same quiz attempt, click in one of the options of that other single answer option.
      2. Make sure the Clear my choice option of that question is now visible.
      3. Make sure the other questions in the page don't display the Clear my choice option.
      4. Click in the Clear my choice option of that question.
      5. Make sure the choice you choose before is not checked any more.
      6. Click in a choice of both single choice question.
      7. Make sure both question display Clear my choice option.
      8. Click on both Clear my choice options and make sure the choice previously selected has been cleared.
      Next/Previous still save selected choice
      1. Still as admin, edit the quiz and move one of the questions to a second page.
      2. Start the attempt.
      3. Click in one of the single answer options.
      4. Click on Next page button.
      5. After reloading, click on Previous page button.
      6. Make sure the choice you choose before is checked.
      7. Now, click Clear my choice and click Next page again.
      8. After reloading, click on Previous page button.
      9. Make sure no choices are checked in that question.
      Multiple answer question should not display "Clear my choice" option
      1. Still on the same quiz attempt, click in one of the options of that other MULTIPLE answer option.
      2. Make sure the Clear my choice option is not visible.
      3. Try checking other options, it should not display "Clear my choice" option at all. (of course it is a checkbox, duh)
      Preview
      1. Go back to the quiz main page and click Preview.
      2. Make sure the it behaves the exact same way as tested in the steps above:
        • Single answer questions should display and clear the choice.
        • Multiple answers should not have the option to clear the choice (of course it is a checkbox, duh)
      Accessibility

      You need to install and enable ChromeVox extension to test this bit.

      1. Go to the Quiz and click anywhere in the small grey coloured container (Where it shows Question X, Flag this question, edit...).
      2. Hit tab key till the screen reader says: Clear my choice (you won't be able to see this).
      3. Press up in the keyboard, selecting one of the options
      4. Make sure the Clear my choice option is now visible
      5. Press down key on the keyboard, selecting the Clear my choice option this time.
      6. Make sure the Clear my choice option is not visible anymore.
      7. Make sure none of the other radio buttons are checked.
      Try the new feature on Clean theme, it should behave exactly same way as in Boost.
      Show
      Setup Log in as admin. Create a course, or use an existing one. Go to the course and create a quiz. Edit the quiz and add 3 new multiple choice questions (you can use existing questions as long they are multi choice): Two questions should be One answer only . One question should be Multiple answer allowed . Edit the quiz and make sure all 3 questions are in the same page. Test basic funcionality Log in as a admin and go the quiz. Start the attempt. Click in one of the single answer options. Make sure the Clear my choice option is now visible. Click in the Clear my choice option. Make sure the choice you choose before is not checked any more. Make sure the Clear my choice option is not visible. Multiple questions in the same page Still on the same quiz attempt, click in one of the options of that other single answer option. Make sure the Clear my choice option of that question is now visible. Make sure the other questions in the page don't display the Clear my choice option. Click in the Clear my choice option of that question. Make sure the choice you choose before is not checked any more. Click in a choice of both single choice question. Make sure both question display Clear my choice option. Click on both Clear my choice options and make sure the choice previously selected has been cleared. Next/Previous still save selected choice Still as admin, edit the quiz and move one of the questions to a second page. Start the attempt. Click in one of the single answer options. Click on Next page button. After reloading, click on Previous page button. Make sure the choice you choose before is checked. Now, click Clear my choice and click Next page again. After reloading, click on Previous page button. Make sure no choices are checked in that question. Multiple answer question should not display "Clear my choice" option Still on the same quiz attempt, click in one of the options of that other MULTIPLE answer option. Make sure the Clear my choice option is not visible. Try checking other options, it should not display "Clear my choice" option at all. (of course it is a checkbox, duh) Preview Go back to the quiz main page and click Preview . Make sure the it behaves the exact same way as tested in the steps above: Single answer questions should display and clear the choice. Multiple answers should not have the option to clear the choice (of course it is a checkbox, duh) Accessibility You need to install and enable ChromeVox extension to test this bit. Go to the Quiz and click anywhere in the small grey coloured container (Where it shows Question X, Flag this question, edit...). Hit tab key till the screen reader says: Clear my choice (you won't be able to see this). Press up in the keyboard, selecting one of the options Make sure the Clear my choice option is now visible Press down key on the keyboard, selecting the Clear my choice option this time. Make sure the Clear my choice option is not visible anymore. Make sure none of the other radio buttons are checked. Try the new feature on Clean theme, it should behave exactly same way as in Boost.

      When using multiple answer question with single answer option then radio buttons appear in the quiz accordingly. There should be answer deletion for such questions.

      I use penalty for wrong answer, so no answer is better than wrong answer.

        1. 1.png
          1.png
          143 kB
        2. 2.png
          2.png
          128 kB
        3. 3.png
          3.png
          44 kB
        4. clearbutton.js
          0.9 kB
        5. clearRadioButtonPatch.txt
          12 kB
        6. MDL-5311.png
          MDL-5311.png
          75 kB
        7. patch_questions_unmarkradiobutton.txt
          3 kB
        8. patch.txt
          12 kB
        9. response.png
          response.png
          29 kB

            lameze Simey Lameze
            imported Imported
            Tim Hunt Tim Hunt
            Jake Dallimore Jake Dallimore
            Janelle Barcega Janelle Barcega
            Votes:
            40 Vote for this issue
            Watchers:
            28 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 weeks, 4 hours, 10 minutes
                4w 4h 10m

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