Moodle
  1. Moodle
  2. MDL-29355

Cloze/embedded questions do not show feedbacks

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
      None
    • Database:
      Any
    • Testing Instructions:
      Hide

      Testing instructions

      • Create a new cloze question and name it
      • Add the question text as follows, taken from the Moodle Docs examples:

      Largest city in France is:

      {1:SHORTANSWER:%100%Paris#Congratulations!~%50%Marseille#No, that is the second largest city in France (after Paris).~*#Wrong answer. The capital of France is Paris, of course.}

      Enter a number:

      {1:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8 ~%50%23.8:2#Feedback for ½ credit near correct answer}
      • Click "Decode and verify the question text". Check that the questions parse correctly.
      • Save changes
      • Preview the question
      • Choose 'Immediate feedback' for 'How questions behave' and click 'Start again with these options'
      • Enter 'Marseille' in the first field and 23 in the second field. Click 'Check'
      • Check that each field displays yellow ticks for the two partially correct answers.
      • Feedback for each option entered should be available - if not on the screen itself, then in the pop-up window that appears when you hover over each field.
      Show
      Testing instructions Create a new cloze question and name it Add the question text as follows, taken from the Moodle Docs examples: Largest city in France is: {1:SHORTANSWER:%100%Paris#Congratulations!~%50%Marseille#No, that is the second largest city in France (after Paris).~*#Wrong answer. The capital of France is Paris, of course.} Enter a number: {1:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8 ~%50%23.8:2#Feedback for ½ credit near correct answer} Click "Decode and verify the question text". Check that the questions parse correctly. Save changes Preview the question Choose 'Immediate feedback' for 'How questions behave' and click 'Start again with these options' Enter 'Marseille' in the first field and 23 in the second field. Click 'Check' Check that each field displays yellow ticks for the two partially correct answers. Feedback for each option entered should be available - if not on the screen itself, then in the pop-up window that appears when you hover over each field.
    • Affected Branches:
      MOODLE_21_STABLE
    • Rank:
      18882

      Description

      Cloze questions of the SHORTANSWER or NUMERICAL types do not display the feedbacks specified in their definition. This is true of the question preview available in the Question Bank, and also when the question is displayed within a Quiz.

      Steps to reproduce:

      • Create a new cloze question and name it
      • Add the question text as follows, with examples taken from Moodle Docs:

      Largest city in France is:

      {1:SHORTANSWER:%100%Paris#Congratulations!~%50%Marseille#No, that is the second largest city in France (after Paris).~*#Wrong answer. The capital of France is Paris, of course.}

      Enter a number:

      {1:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8 ~%50%23.8:2#Feedback for ½ credit near correct answer}
      • Click "Decode and verify the question text". The questions parse correctly.
      • Save changes
      • Preview the question
      • Choose 'Immediate feedback' for 'How questions behave' and click 'Start again with these options'
      • Enter 'Marseille' in the first field and 23 in the second field. Click 'Check'
      • You now see yellow ticks for the two partially correct answers.
      • Hover over each field in turn. You see information about the correct answer and the grade, but the expected feedback is not shown in either case. (See attached image.) There does not appear to be a way to access the feedbacks.

        Issue Links

          Activity

          Hide
          Pierre Pichet added a comment -

          Please do a search before creating a new bug.
          Using cloze and feedback as keywords will have point to MDL-28259...

          Show
          Pierre Pichet added a comment - Please do a search before creating a new bug. Using cloze and feedback as keywords will have point to MDL-28259 ...
          Hide
          Steve Bond added a comment -

          I do search before reporting any bug. I would have searched for "embedded", which would not have turned up MDL-28259.

          Show
          Steve Bond added a comment - I do search before reporting any bug. I would have searched for "embedded", which would not have turned up MDL-28259 .

            People

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

              Dates

              • Created:
                Updated:
                Resolved: