Hi, I have recently upgraded to Moodle 4.0.1 and the "Preview questions" button in Feedback is much more obvious than in the previous versions, causing confusion for students and also allowing them to see all questions when a conditional set of questions is included, which they would not normally see.
Can I hide the preview questions button and the link to print.php?
I managed to hide it in our previous version (3.9) by commenting out the following code in feedback\view.php, but it has not worked in the new version
$previewimg = $OUTPUT->pix_icon('t/preview', get_string('preview'));
$previewlnk = new moodle_url('/mod/feedback/print.php', array('id' => $id));
if ($courseid) {
$previewlnk->param('courseid', $courseid);
}
$preview = html_writer::link($previewlnk, $previewimg);
I can see that this is showing as an unresolved issue in https://tracker.moodle.org/browse/MDL-63015 and https://tracker.moodle.org/browse/MDL-70586
Does anyone have a workaround?
Regards,
Bronwen