Problem/Motivation

- Show user answer on Score quizzes form

Steps to reproduce

- Create question type: Long answer and add to quiz
- Take test and go to /admin/quiz/reports/unevaluated and click Score to evaluate:

evaluate

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nguyenphan created an issue. See original summary.

sathish_kumar_’s picture

am also working on the same issue in modules/contrib/quiz/src/Entity/QuizResultAnswerEntityTrait.php by doing some changes we can get answers but i need to get the answer id's dynamically. Please need some help.

djdevin’s picture

Category: Feature request » Bug report
FileSize
19.97 KB
2.21 KB

This should make it match the behavior we had in 7.x-5.x

You have to do a few steps first:

- Go to /admin/quiz/config/quiz
- Check the box "Override administrator review options"
- Select the items you wish to see when grading (so you'd probably want to check off "Question: Full" and also "Attempt" under "After the quiz")

Then when you go to grade a quiz it should show you those items. It will look something like this:

feedback display

The changes here adds the form item which was missing for some reason, and puts each question into a fieldset.

Tests need to be updated.

djdevin’s picture

Status: Active » Needs review
djdevin’s picture

Status: Needs review » Fixed

  • djdevin committed cd0c9fc on 6.x
    Issue #3240773 by djdevin: Show user answer on  Score quizzes form (...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.