Group choice

Activities ::: mod_choicegroup
Maintained by Nicolas Dunand
This module allows students to enrol themselves in a group within a course. The teacher can select which groups students can chose from and the maximum number of students allowed in each group.
Latest release:
5543 sites
109 fans
Current versions available: 4

This module allows students to enrol themselves in a group within a course. The teacher can choose from which groups the students can chose, and the maximum number of students allowed in each group.

Depending on the activity settings, the students can view the members of each group before making a choise, and change their selected group until the deadline.

Potential privacy issues

Depending on settings chosen by a teacher, students may see what groups other users have chosen.


Screenshot #0


Nicolas Dunand (Lead maintainer)
RISET Université de Lausanne: Supporting institution
Please login to view contributors details and/or to contact them

Comments RSS


  • Tue, May 21, 2013, 1:55 PM
    Have you created any groups in your course? Groups need to exist for students to be able to chose one within this activity.
  • Mon, May 27, 2013, 10:05 PM
    I have found a bug.

  • Mon, Jul 1, 2013, 7:21 PM
    Hi Nicholas,

    Just wanted to say that we're really pleased with your plugin at the University of Kent; this is invaluable and should ideally be a core feature. We've just upgraded to 2.4 and I've created an SVG icon for the plugin, which I thought you might find useful. You can find it here:
  • Mon, Jul 1, 2013, 8:07 PM
    Hi Steve,
    Thanks a lot for the icon, I'll include it in the next release.
  • Thu, Jul 25, 2013, 8:09 PM
    After setting up the choicgroup module, when I try to register, I get the following message: 403 - Forbidden Error You are not allowed to access this address. If the error persists, please contact the website webmaster.
    Any idea ?
    I am using Moodle 2.5
  • Mon, Aug 5, 2013, 3:24 PM
    Hi Lhoussaine,
    What do you mean "when I try to register"? What is the address yielding the 403 error? Can you provide the exact URL?
  • Mon, Sep 9, 2013, 4:49 PM
    Logged in as a student I get this message when changing group, and it results in the student becoming member of both groups:

    Did you remember to make the first column something unique in your call to get_records? Duplicate value '18' found in column 'gid'.
    line 1032 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
    line 327 of /lib/conditionlib.php: call to mysqli_native_moodle_database->get_records_sql()
    line 1698 of /lib/modinfolib.php: call to condition_info_section->is_available()
    line 337 of /lib/modinfolib.php: call to section_info->__construct()
    line 1341 of /lib/modinfolib.php: call to course_modinfo->__construct()
    line 2789 of /lib/moodlelib.php: call to get_fast_modinfo()
    line 26 of /mod/choicegroup/view.php: call to require_login()

    I'm using Moodle 2.4.5 and the 2012111400 version of the plug in.
  • Tue, Sep 10, 2013, 2:03 PM
    Hi Peter,
    The latest version (2013071000) is available on GitHub (see "Source control URL" link) and should be available here shortly. This version fixes all known bugs.
  • Thu, Sep 19, 2013, 2:06 AM
    Hi Nicolas,

    thanks for this plugin, we're using it extensively and it is extremely useful! The updated version on Github does indeed fix the multiple groups problem, more thanks for that!
    An issue we have (but hard to know if students are giving us an accurate report or if they're just trying to get a "seat" in a group that is closed), is that some students' choices seem to disappear. From the reports, all I can see for those students is that they made a choice, then chose again, usually in the same minute or the next - I do however get the same report results from some other students, and they seem to be in a group; SO, just asking whether you know about this. i'll investigate from my side, try to reproduce the issue and let you know...

    Just a few questions/suggestions,
    - is it possible to see the history of choices of a student? In the reports, I can see the "choose" and "Choose again", but not what the choices were (might be handy in some cases).
    - A feature suggestion - it'd be great if it were possible, in the "view X responses" page, to select students and send them a message. Right now, it is only possible to delete choices, we'd love the possibility to select the students who haven't made a choice yet, and send them a reminder; (seems like the completion report indicates the students who have made then removed a choice are considered as having done the activity) Or if students' e-mail addresses were included in the excel export of the file, that'd solve it as well (right now I DL the choices, then export the gradebook, and merge the two files, but that's a little trickier for some colleagues)

    TIA and Thx again smile
  • Thu, Sep 19, 2013, 3:07 AM
    OK, did some testing and digging in the forums (this link was the hint).

    I reported the bug here: CONTRIB-4645

  • Fri, Sep 27, 2013, 9:17 PM
    Hi jean-Luc,

    Thanks a lot for taking the time to make thorough tests and for reporting it so clearly.

    CONTRIB-4645 has been dealt with. Moreover, I improved the logging feature, so that the reports actually show into/from which groups the students have enrolled or left.

    The latest version is as of now available on GitHub (see "Source control URL" link above) and should land here shortly.

    Best regards,
  • Tue, Dec 17, 2013, 12:53 AM
    Hi Nicolas - Do you have plans for officially supporting Moodle 2.6?
  • Mon, Jan 6, 2014, 6:39 PM
    Hi Colin,
    From my (not extensive) testing, everything seems to work fine in 2.6. If will promptly correct any bugs filed here or on GitHub ("Source control URL" link above).
  • Mon, Jan 13, 2014, 4:29 PM
    The updated version of the Group Choice plugin now officially supports Moodle 2.6!
  • Germán and Temudgin
    Tue, Jan 14, 2014, 11:36 PM
    I like the group choice add-on. I think it will improve if you change one English language string:

    2.5 [modulename_help,choicegroup] The choice module enables the teacher to ask a question and specify a choice of multiple responses.

    to something like:

    2.5 [modulename_help,choicegroup]
    The Group Choice module allows students to enrol themselves in a group within a course. The teacher can select which groups students can chose from and the maximum number of students allowed in each group.

    Which clearly states the use of this module.

    Thanks in advance.
Please login to post comments