2 posts / 0 new
Last post
romereborn
Offline
Last seen: 1 year 3 months ago
Joined: 07/17/2017
Hiding and Showing Quiz Answers based on Number of Attempts

Hello,

I have a quiz which a user may attempt 2 times.

I would to hide the correct answers until after the user's final attempt. But after each attempt, I would like to show the user's answers with feedback.

Currently, in the "Taking Options" for the quiz, I have unchecked the "Display Solution" and selected "At the end of Lesson" for the "Feedback Time." However, at the end of the Lesson, no feedback is displayed, regardless of the attempt. Further, after the first attempt, the user may view the questions, feedback, as well as the correct answers by going to My Results at user/*/myresults.

At the very least, I would like to be able to hide the answers from the user until after their final attempt. Displaying the feedback after each attempt is desired but not essential.

Are there some settings for the Quiz that I could change to accomplish this? Or if I have to do some scripting, where might I start?

Thank you!

romereborn
Offline
Last seen: 1 year 3 months ago
Joined: 07/17/2017
Issue with version of Quiz in Opigno

This appears to be an issue with the version of Quiz in Opigno for D7: https://www.drupal.org/project/quiz/issues/956682

It looks like the Quiz module is/will be updated for the D8 version of Opigno: https://www.drupal.org/project/opigno_lms/issues/2359109

Looks like I'll have to find a workaround, switching my Drupal version is not an option.