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.
Comment | File | Size | Author |
---|---|---|---|
#11 | quiz_multichoice_dont_indicate_correct_answer_7.x-4.0-beta1_869412_11.patch | 2.05 KB | yce |
#10 | multichoice_dont_indicate_correct_answer_7.x-4.0-beta1_869412_10.patch | 2.4 KB | Anonymous (not verified) |
#9 | multichoice-6.x-4.0-rc9-869412.patch | 2.16 KB | hiddentao |
#5 | multichoice_869412_5.patch | 2.19 KB | jleinenbach |
#3 | multichoice.patch | 2.66 KB | hiddentao |
Comments
Comment #1
djdevinDdi you see the "Display solution" option on the quiz node itself?
Comment #2
pagaille CreditAttribution: pagaille commentedAs 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).
Comment #3
hiddentao CreditAttribution: hiddentao commentedI 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.
Comment #4
jleinenbach CreditAttribution: jleinenbach commentedSubscribe.
Comment #5
jleinenbach CreditAttribution: jleinenbach commentedSame patch as #3, but module patch_manager compatible and tested on a Debian system.
Comment #6
rmjiv CreditAttribution: rmjiv commentedAgreed 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.
Comment #7
zeezhao CreditAttribution: zeezhao commented+1. Good idea.
Comment #8
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedThanks 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.
Comment #9
hiddentao CreditAttribution: hiddentao commentedPatch in #5 re-created against 6.x-4.0-rc9.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedHere's a patch for 7.
S
Comment #11
yce CreditAttribution: yce at Pronovix commentedI've cleaned up your patch a little, you should always use relative paths for the module.
Comment #12
djdevinThis 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.