User profile fields: Multi select menu custom user profile field

profilefield_multiselect
Maintained by Picture of Nitin JainNitin Jain
A multiselect menu as a custom user profile field for Moodle. How it could be useful: This new custom profile field type could be used in many cases like: 1. You have to differentiate users into groups and one user could be part of multiple groups 2. You want to take inputs from user at the time of registration or you manually want to fill some information for users like education, certificates they have done. 3. There could be various other cases like this,
176 sites
61 downloads
17 fans
Current versions available: 1

We are happy to publish multi-select menu as a custom user profile field for Moodle.

How it could be useful:
This new custom profile field type could be used in many cases like:
1. You have to differentiate users into groups and one user could be part of multiple groups
2. You want to take inputs from user at the time of registration or you manually want to fill some information for users like education, certificates they have done.
3. There could be various other cases like this,

Installation Instructions:
1. Unzip the directory and copy inside your-moodle /user /profile /field (at the end the folder structure should look like your-moodle/user/profile/field/multiselect)
2. Log into Site as Admin user and go to site-administration -> Notification to perform installation.
3. After successful installation, you would find a new custom profile field type inside site administration -> user -> accounts -> user profile fields
4. Enjoy this new feature.

Potential privacy issues

N/A

Screenshots

Screenshot #0
Screenshot #1

Contributors

Picture of Nitin Jain
Nitin Jain (Lead maintainer)
Picture of balaji jadhav
balaji jadhav: Contributor
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of David Mudrák
    Wed, Jul 23, 2014, 9:35 PM
    Thanks Nitin for sharing this plugin with the community. I was able to successfully test it and reviewed the code. It's all good so I am going to approve this. The only suggestion is that in Moodle, we do not use capitalised titles so the name of the plugin should better read "Multi select" for better consistency in the user interface. Please consider this in further updates of your plugin.
  • Picture of s w
    Wed, Feb 4, 2015, 10:19 PM
    Hello Nitin,
    Thanks for a great plugin. I am interested in using it but we have moodle 2.2 version; would it work with it?

    Thanks
  • Picture of s w
    Wed, Feb 4, 2015, 11:31 PM
    I tried installing it on 2.2 version but get an error
    You must solve all the plugin requirements before proceeding to install this Moodle version!

  • Picture of Bart Van Leeuwen
    Tue, Feb 10, 2015, 8:47 PM
    Gives errors in 2.8.
    I corrected them by checking $this->field.
    Before line 18 and line 21 I added: if ($this->field)
  • Picture of Nitin Jain
    Mon, Feb 16, 2015, 2:49 PM
    thats great Bart.. I would test my plugin for 2.8 and submit again..
  • Picture of Federica Marra
    Tue, Apr 28, 2015, 6:39 PM
    Hi Nitin, when are you going to submit the plugin for 2.8.5 Moodle version?
    I really like this plugin and we are going to use it in our moodle as soon it will be ready. smile
  • Picture of Adriane Cônsolo
    Thu, Nov 12, 2015, 10:55 PM
    This version does not work in Moodle 2.9. I installed and the page "Administration > Site administration > Users > Accounts > Bulk user actions" showed me a error. I had to unistall the plugin and to restart the database to return to normal function. I can't understand why this is not standart at Moodle.
  • Picture of sara rabie
    Thu, Mar 30, 2017, 4:40 PM
    i use moodle 3.2 when i try add this query
    select c.id , c.fullname from {course} AS c where c.id != 1
    this error data column is missing in query return values

    why this error appear?
  • Picture of sara rabie
    Tue, Apr 4, 2017, 3:50 PM
    i use moodle 3.2 when i try add this query
    select c.id , c.fullname from {course} AS c where c.id != 1
    this error data column is missing in query return values

    why this error appear?

    any help here???
  • Picture of Sandipa Mukherjee
    Tue, Nov 13, 2018, 3:52 PM
    I am using this plugin in moodle 3.5 and getting this notice.

    Use of class name as constructor is deprecated
    line 119 of /user/profile/lib.php: call to debugging()
    line 14 of /user/profile/field/multiselect/field.class.php: call to profile_field_base->profile_field_base()
    line 571 of /user/profile/lib.php: call to profile_field_multiselect->profile_field_multiselect()
    line 646 of /user/profile/lib.php: call to profile_get_user_fields_with_data()
    line 238 of /user/editadvanced_form.php: call to profile_definition_after_data()
    line 961 of /lib/formslib.php: call to user_editadvanced_form->definition_after_data()
    line 357 of /user/editadvanced.php: call to moodleform->display()
  • Picture of Sandipa Mukherjee
    Wed, Nov 14, 2018, 4:50 PM
    I have solved the notice.

    I have replaced
    function profile_field_multiselect($fieldid=0, $userid=0) {
    //first call parent constructor
    $this->profile_field_base($fieldid, $userid);

    this code with the below code

    public function __construct($fieldid = 0, $userid = 0, $fielddata = null) {
    //first call parent constructor
    parent::__construct($fieldid, $userid, $fielddata);

    in /user/profile/field/multiselect/field.class.php

    Hope this helps.

    Thanks and regards,
    Sandipa
Please login to post comments