I'm using the Multichoice component to create multi-choice quizzes. Thing is, when the user gets to the results page I don't want them to be told what the correct answer for the questions they got wrong.

I was initially going to use some clever CSS to hide the grey tick that appears next to the correct answer but decided it would just as easy to add a Multichoice config option (see attached patch). It adds a checkbox to admin/quiz/settings/questions_settings page under the "Multiple choice question" heading (see attached image).

By default the checkbox is unchecked, which is the same as the current behaviour without the patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

djdevin’s picture

Ddi you see the "Display solution" option on the quiz node itself?

pagaille’s picture

As far as I can tell, the display solution option only applies to the way the feedback is displayed at the end of each question. The correct answer is still displayed in the result summary (I'm using RC7).

hiddentao’s picture

FileSize
2.66 KB

I second what said regarding the 'Display Solution' option. It still shows you what you got right and wrong at the end of the quiz.

I've attached a patch for version 6.x-4.0-rc8.

jleinenbach’s picture

Subscribe.

jleinenbach’s picture

Version: 6.x-4.0-beta4 » 6.x-4.0-rc8
FileSize
2.19 KB

Same patch as #3, but module patch_manager compatible and tested on a Debian system.

rmjiv’s picture

Status: Active » Reviewed & tested by the community

Agreed about usefulness. Might be better if this was a per-quiz configuration but this implementation solves my problems. Patch in #5 seems to be correct and works on my system. Marking reviewed and tested.

zeezhao’s picture

+1. Good idea.

Sivaji_Ganesh_Jojodae’s picture

Version: 6.x-4.0-rc8 » 6.x-5.x-dev
Status: Reviewed & tested by the community » Postponed

Thanks for contributing to quiz module. At the moment we don't accept new features request for quiz 4.x. We will consider this up coming version.

hiddentao’s picture

Version: 6.x-5.x-dev » 6.x-4.0-rc9
FileSize
2.16 KB

Patch in #5 re-created against 6.x-4.0-rc9.

Anonymous’s picture

yce’s picture

I've cleaned up your patch a little, you should always use relative paths for the module.

djdevin’s picture

Status: Postponed » Closed (won't fix)

This is fixed in 5.x, it required a complete revamp of the feedback system.

I think it would be near impossible to port the work that's already been done to 6.x or 7.x-4.x, so marking as won't fix.