## Activities: Checklist

mod_checklist
Maintained by Davo Smith
A checklist can be created by a teacher (or generated from the activities in a course) and then the students or teachers can check-off each item as they are completed.
4423 sites
111 fans
Current versions available: 3

This is a Moodle activity module for Moodle 1.9 and Moodle 2.0+ that allows a teacher to create a checklist / todo list / task list for their students to work through. The teacher can monitor all the students' progress, as they tick off each of the items in the list. Items can be indented and marked as optional. Students are presented with a simple bar showing how far they have progressed through the required/optional items and can add their own, private, items to the list.
Features include:

• Choose whether students or teachers can check-off items
• Students can add their own notes to their checklist
• Dates can be added to items (and exported to the calendar)
• Teachers can comment on an individual student's items
• Progress is exported to the gradebook
• Choice of colours for each checklist item
• (Optional) Import list of current course activities and automatically check-off as activities completed

There are two other plugins that further enhance this activity:

Video overview of this plugin:

The latest version (and the Moodle 1.9 version) can always be found here: https://github.com/davosmith/moodle-checklist (the version on Moodle.org will be updated from time to time)

### Sets

This plugin is part of sets Checklist, MoodleCloud.

### Contributors

• Tue, Feb 9, 2016, 5:06 PM
Yuka - search for the two lines of code in locallib.php that look something like 'input type="text name="teachercomment[' and edit them to turn them into a textarea instead.
• Tue, Feb 9, 2016, 6:52 PM
Thank you for your reply! and I tried them. However, I don't know how to deal with the value element in textarea. So I can make the text box and fill in, but next time, when I re-edit, comments don't display. They went away. I paste codes (line1115-1123) I changed below, could you please give me more advise.

echo '<textarea cols="25" rows="3" name="teachercomment['.$item->id.']" value="'.s($comment->text).'" '.$outid.'></textarea>'; } else { echo s($comment->text);
}
echo ' </span>';
}
}
if (!$foundcomment &&$editcomments) {
echo ' <textarea cols="25" rows="3" name="teachercomment['.$item->id.']"></textarea>'; • Tue, Feb 9, 2016, 6:56 PM Details of the textarea element can be found online at: https://developer.mozilla.org/en/docs/Web/HTML/Element/textarea • Wed, Feb 10, 2016, 3:08 PM Thanks again. When I changed the line 1115 like what below, I delete the code '.$outid.' because it shows 'id="firstcomment"' after comments. Is this way correct?
echo '<textarea cols="25" rows="3" name="teachercomment['.$item->id.']">'.s($comment->text).'</textarea>';
• Fri, Feb 12, 2016, 6:22 AM
Hi, and thank you for this tremendous tool. We are using this checklist in all of our courses to help students determine their progress.
I noticed the teacher view of the progress bar shows not only the percentage, but also the number complete out of the total number of activities. The student view shows only the percentage, as seen in the link below,

Is there anyway that the student can view the number of activities completed out of total activities? This would be a great feature for the student to view.

Thank you again for this great tool.
• Fri, Feb 12, 2016, 9:57 AM
Mr. Davo Smith, I was badly mistaken, I've thought the '.$outid.' is a piece of a value element. I've got not comment, but id. Thank you for your kindly help, and trying to understand my poor English! • Fri, Feb 26, 2016, 12:02 AM Hi again, I asked a question on Feb 12, and have not received a response yet. I'm hoping by asking a second time I will get a response. I think I might have asked the first time when there was another discussion going on. Anyway here is my question. The teacher view of the progress bar shows not only the percentage, but also the number complete out of the total number of activities. The student view shows only the percentage, as seen in the link below, https://docs.google.com/presentation/d/1lUAsnWbHpqYD98d9H526jW53O0rT48mvTlmp6unyMxM/edit?usp=sharing Is there anyway that the student can view the number of activities completed out of total activities? This would be a great feature for the student to view. Thank you again for this great tool. Adele • Fri, Feb 26, 2016, 12:08 AM Adele - sorry I missed your message earlier. I was on holiday when you sent it and overlooked it during my catch-up afterwards. You cannot add the item count without changing the code for the plugin. It should be a fairly straightforward bit of code to change, if someone wants to take a look at it and submit a patch. Otherwise, I will try to get around to looking at it at some point (I can't promise when). • Fri, Feb 26, 2016, 4:38 AM Davo, Thanks for the response. I assumed you just missed the original comment. We have a Moodle Partner. I'll have to see if they'd be willing to take a look at it. If you do get a chance to look at it and patch it please let me know. I can't thank you enough for this tool. • Tue, Mar 8, 2016, 7:24 PM Hi, We are using this plugin with Moodle 2.5.4+ and have noticed that an error is logged every time the cron runs: [08-Mar-2016 10:46:02 UTC] PHP Fatal error: Class 'mod_checklist\local\autoupdate' not found in /home/mysite/public_html/mod/checklist/lib.php on line 695 On this test server the error logging level is:$CFG->debug = (E_ALL | E_STRICT);
Turning off error logging suppresses the error in the log.
Is there a fix for this?
• Tue, Mar 8, 2016, 7:29 PM
It should work fine if you upgrade to any of the currently-supported versions of Moodle (2.7 or above), but if you are unable to upgrade, then it should be possible to fix by adding into that function:

require_once(\$CFG->dirroot.'/mod/checklist/classes/local/autoupdate.php');
• Tue, Mar 8, 2016, 7:48 PM
That works! Thanks. We plan to upgrade to 2.9.4 at some time in the near future.
• Tue, Mar 8, 2016, 11:57 PM
Thanks for the great plug-in! We plan to use the checklist plug-in to allow student groups to manage themselves. In other words: they set all the to-do's, including deadlines. For this, we can give the students to access the edit-page.

In addition, we need a separate list of to-do's per group, rather than one shared for all groups/students. Moreover, they should only be able to see progress within their own group, not in other groups. We will now solve this by making a single-activity course, with only a checklist, for each group of students. In that way, they can manage their own to-do's and also have a sense of group progress.

However, this is quite a detour. Davo, do you have any suggestions on how we can do this easier? I'm happy to make the edits myself, but some pointers would be nice. Afterwards, we would also like to add assigning to-do's to specific users, etc, but that's for later
• Wed, Mar 9, 2016, 4:04 PM
Hi Frank - I don't think there is any simple way to make what you want easier to do. You can enable per-user checklist items, but they can only be seen by the user in question, not any other users. There is no support for adding per-group items (or allowing users to edit per-group).

In theory, some of this *should* be easy to add to the code and, if I was writing it now (with many more years Moodle dev experience), they could be added very quickly. However, the code is messy and long overdue a refactor, making small changes much more difficult to implement.
• Sat, Mar 26, 2016, 11:45 PM
Hi Davo,

I want the % to show on the block after the bar. is there a simple way to get that? If i open the cheklist i have the % para i wish that could also be seen on the course page. Thanks