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

Allow to uncheck answers in quiz attempt: response = empty

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.6, 1.6.1
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE

      Description

      This is related MDL-5324 issue: allow negative score for individual questions (like SAT MCAT etc.)

      If negative points apply for wrong choices in multichoice questions, then the student should have the option to leave the question blank, unanswered and avoid penalty. However, now once the student has clicked on a radiobutton, there is no way to uncheck it. The only possibility is to mark another option, but it is imposiible to leave the question blank.

      A liitle javascript could help to this task. At ULPG we are using:

      <?php if (!$answer->feedback) { ?>
      <br /><br />
      <input type=button value="<?php print_string('noresponse', 'quiz') ?>" onClick='blankresponse(<?php echo $question->name_prefix ?>)'>
      <script>
      function blankresponse(resp)
      {
      for (var i=0;i<resp.length;i++)

      { resp[i].checked=false; }

      }
      </script>

      We have included these lines in question/type/multichoice/display.html form,
      by line 11, aftter
      <div class="ablock clearfix">
      <div class="prompt">
      <?php echo $answerprompt; ?>

      In this way students can give a second thought and uncheck if desired.

        Gliffy Diagrams

          Issue Links

            Activity

            ecastro Enrique Castro created issue -
            ecastro Enrique Castro made changes -
            Field Original Value New Value
            Priority Major [ 3 ] Minor [ 4 ]
            danmarsden Dan Marsden made changes -
            Component/s Questions [ 10087 ]
            danmarsden Dan Marsden made changes -
            Link This issue has a non-specific relationship to MDL-5324 [ MDL-5324 ]
            timhunt Tim Hunt made changes -
            Assignee Martin Dougiamas [ dougiamas ] Tim Hunt [ timhunt ]
            timhunt Tim Hunt made changes -
            Link This issue has a non-specific relationship to MDL-5324 [ MDL-5324 ]
            timhunt Tim Hunt made changes -
            Link This issue has a non-specific relationship to MDL-1647 [ MDL-1647 ]
            timhunt Tim Hunt made changes -
            Link This issue duplicates MDL-5311 [ MDL-5311 ]
            timhunt Tim Hunt made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            dougiamas Martin Dougiamas made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            QA Assignee nobody
            dougiamas Martin Dougiamas made changes -
            Workflow jira [ 17073 ] MDL Workflow [ 53196 ]
            dougiamas Martin Dougiamas made changes -
            Workflow MDL Workflow [ 53196 ] MDL Full Workflow [ 82305 ]

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: