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:
5614 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


  • Wed, Jan 25, 2012, 12:15 PM
    how come version 1.9 doens't work ?
  • Mon, Feb 20, 2012, 5:25 PM
    getting this error message in moodle 2.2


    Coding error detected, it must be fixed by a programmer: Cannot require a CSS file after has been printed.

    More information about this error
    Debug info: /blocks/accessibility/userstyles.php
    Stack trace:

    line 595 of \lib\outputrequirementslib.php: coding_exception thrown
    line 49 of \blocks\accessibility\block_accessibility.php: call to page_requirements_manager->css()
    line 118 of \blocks\moodleblock.class.php: call to block_accessibility->init()
    line 635 of \lib\upgradelib.php: call to block_base->__construct()
    line 273 of \lib\upgradelib.php: call to upgrade_plugins_blocks()
    line 1440 of \lib\upgradelib.php: call to upgrade_plugins()
    line 269 of \admin\index.php: call to upgrade_noncore()
  • Mon, Mar 19, 2012, 11:39 PM
    When using the Group Choice plug-in with "Allow choice to be updated" set to Yes, it is a good tool.

    However if the above choice is set to No then students, once they have made a choice, are presented with a screen that quite user unfriendly. In the test I did, they see Your selection: 13 (or 12 depending on the choice made) which bears no relation to the choice they were asked to make, and they are not allowed to see the current composition of the groups.

    Are there any plans to improve this part of the plugin? It's a really useful plugin but this stops us making full use of it.

    Many Thanks.
  • Mon, Jul 9, 2012, 2:06 PM

    I recently did a major rewrite of this module. The interface is now more user friendly, and the teacher is now able to control privacy settings in a more consistent manner.

    Moreover, the Group Choice plugin now works in Moodle 2.3 as well.
  • Wed, Aug 1, 2012, 4:34 PM
    When navigating to index.php:

    Debug info: Table 'moodle.m_choicegroup_answers' doesn't exist
    SELECT cha.*
    FROM m_choicegroup ch, m_choicegroup_answers cha
    WHERE cha.choicegroupid = AND
    ch.course = ? AND cha.userid = ?
    [array (
    0 => '4',
    1 => '2',
    Error code: dmlreadexception
    Stack trace:

    line 407 of /lib/dml/moodle_database.php: dml_read_exception thrown
    line 864 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
    line 42 of /mod/choicegroup/index.php: call to mysqli_native_moodle_database->get_records_sql()
  • Wed, Sep 26, 2012, 3:24 PM
    We find that the "Limit the number of responses allowed" is not working well and a few extra students can save their choices exceeding the group limit.
    The view.php is not designed in a “pushing” mode so that the limit is checked once when the page is loaded.
    More important, the save function is not checking the quota restriction.
    In short, it depends only a “pre" loading function” to dim/disable the radio button but his may not work in many cases.

    To regenerate the problem:
    1) Goto the GroupChoice with only 1 slot available
    2) Student A open in Firefox visiting the GroupChoice page; at the same time student B visit the same page using Chrome;
    3) Both students can save their choice making the limit invalid.

    Is there any fix for this problem?
  • Wed, Sep 26, 2012, 8:55 PM
    Amanda & Murphy,
    Can you update to the latest version (1.3.1 which I uploaded today) or download it from the "Source control URL" link and let me know if this solves your problems?
  • Wed, Oct 3, 2012, 2:41 PM
    Dear Nicolas, I've installed the file but the problem is still there.
  • Mon, Oct 8, 2012, 10:08 PM
    Hello Murphy,
    Thanks for reporting back. The code indeed checks before (for display) and after (when the form is submitted) for the group limit, but an error in the code verifying upon submission (post check) escaped my attention. Please find the corrected version in the "Source control URL" link, or here as soon as the module update is approved.
  • Wed, Oct 24, 2012, 9:40 PM
Please login to post comments