Moodle Plugins directory: Export quiz attempts | Moodle.org
Export quiz attempts
This 'report' is actually a tool like the standard Response quiz report, but which lets Staff generate a print-ready version of quizzes and create attempts for Students.
Within the 'Administration' block, select Quiz administration - Results - Export attempts. This will display a user table with additional columns:
- Attempt sheet: a blank quiz attempt so that students can write in their responses in if they cannot attempt the quiz online.
- Answer sheet: all answers to the questions in the attempt sheet.
- Submit student response: a teacher can enter responses on behalf of the student, and then submit that attempt. Obviously only if the student has returned a completed Attempt sheet.
- Create attempt: used to create an attempt for a specific user, which generates the Attempt sheet.
If you want to create a generic Attempt sheet, ensure that the 'Switch role to Student' has been used on the course, and you can then use that row to create a generic quiz attempt (ensuring that the system/course is set up so that the test student role can properly take a quiz, rather than just preview).
Note:
- This plugin tries it best at basic pagination, but you may need to copy-paste into Word to optimise for printing off or turning to PDF.
- We ensure that the questions we use look as good as they can in this report, but we don't use all Moodle questions out there!
This plugin was created to support the work that the Open University does to support students in secure environments.
There is also slightly primitive support for downloading all the attempts at a quiz, using the helper script from https://github.com/moodleou/save-answersheets.
Will there be an update that will include compatibility with M4.1.5+ or is the current version of the plugin sufficient?
I'm currently running Moodle 4.2 and have v1.3 of this plugin installed.
When I click on 'export attempts', I get the following errors:
Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 41
Debug info:
Error code: generalexceptionmessage×Dismiss this notification
Stack trace:
line 160 of /mod/quiz/report/answersheets/classes/report_display_options.php: TypeError thrown
line 41 of /mod/quiz/report/answersheets/classes/report_settings_form.php: call to quiz_answersheets\report_display_options::possible_user_info_visibility_settings()
line 48 of /mod/quiz/classes/local/reports/attempts_report_options_form.php: call to quiz_answersheets\report_settings_form->other_preference_fields()
line 214 of /lib/formslib.php: call to mod_quiz\local\reports\attempts_report_options_form->definition()
line 103 of /mod/quiz/classes/local/reports/attempts_report.php: call to moodleform->__construct()
line 52 of /mod/quiz/report/answersheets/report.php: call to mod_quiz\local\reports\attempts_report->init()
line 83 of /mod/quiz/report.php: call to quiz_answersheets_report->display()
Excepción - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42
Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42
Any news for new version?
I have encountered the same issue as above.
Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42
Any fix to this?
I can confirm the error reported by Madelyne de Bruin on Moodle 4.3.x (tested today). Would be great this issue could be fixed in one of the upcoming minor- (or major) releases.
Best,
Antonia
Thanks for letting u know - unfortunately some of the team is on leave at the moment (half-term in the UK), so we'll look at this as soon as possible.
Please update to 4.x.
We hope
Thanks for your great job.
Lello
Thank you .
We are working on publishing updates to all of our plugins and hope to share them in the coming weeks.
"Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 41"
Our schools would really like to use this plugin but due to the error they cannot.
Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42
(ensuring that the system/course is set up so that the test student role ''can properly take a quiz", rather than just preview)
@Michael Whitman: That's more one for the forums, but at the course-level, you need to ensure that "Switch to" / View as... Student" (we have a different theme and it's called something different) is not added under "mod/quiz:preview".
To get there, assuming you have the correct role, you'll need to navigate to the primary tab "Participants". This will take you to the "Enrol users" screen. Use the secondary dropdown (which'll be "Enrol users" to go to "Permissions". Then filter for "Preview", and you'll get mod/quiz:preview.