I've been trying to make it so when users retry quizzes it will skip over questions that have already been answered correctly. I was wondering if anyone has a good solution to this problem.

I think that I need to modify some part of the function
function quiz_take_quiz($quiz)

But I'm unsure which part of this function I need to change to filter out already correct questions.

If you need further information, let me know.

Comments

DELittle’s picture

Title: Only show questions that you have not been answered correctly » Only show questions that have not been answered correctly
tedbow’s picture

FYI, I had this problem too and made sandbox module that does this: Quiz Skip Correct

I was only using multiple choice questions but it could be adapted/tested for other types

djdevin’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.

berenddeboer’s picture

Version: 7.x-4.0-alpha10 » 7.x-5.1
Status: Closed (outdated) » Needs review

I've created a patch for the skip module so it works with Quiz 5: #2885568: Patch to make this module work with quiz 5.

But would love for that module to be folded into Quiz, it's a handy feature to have, even if it was just an optional module.

djdevin’s picture

Version: 7.x-5.1 » 7.x-5.x-dev
Category: Task » Feature request
Status: Needs review » Needs work

If you can make it into a configuration we can get it into Quiz core.

We already have "build on last attempt" where correct answers would be pre-populated (and incorrect ones blank, to be answered again) so some of that functionality is already there.

smustgrave’s picture

Status: Needs work » Closed (outdated)

With D7 approaching EOL soon I've started the process of triaging the D7 queue here. Since there hasn't been any movement on this going to close out.

If needed for 7.0.x (D10+) please reopen under there