<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Moodle Plugins directory: Dynamic Multi Select: Comments</title>
    <link>https://moodle.org</link>
    <description>Dynamic Multi Select user profile field for Moodle.
Now users can create user multi select fields whose values are retrieved from the moodle DB.</description>
    <generator>Moodle</generator>
    <language>en</language>
    <copyright>(c) 2026 Moodle - Open-source learning platform | Moodle.org</copyright>
    <image>
      <url>https://moodle.org/theme/image.php/moodleorg/core/1777401252/i/rsssitelogo</url>
      <title>moodle</title>
      <link>https://moodle.org</link>
      <width>140</width>
      <height>35</height>
    </image>
    <item>
      <title>Monday, 10 March 2025, 3:24 PM - Cobus van Loggerenberg</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-86586</link>
      <pubDate>Mon, 10 Mar 2025 07:24:27 GMT</pubDate>
      <description>by Cobus van Loggerenberg. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi, I have the following SQL &quot;SELECT id, fullname FROM sols_course WHERE category &amp;gt; 0&quot; but get the message &quot;data column is missing in query return values&quot; although it shows there are a number of possible values. I run Moodle 4.15, do you have any suggestions?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-86586</guid>
    </item>
    <item>
      <title>Friday, 22 May 2020, 8:00 AM - Otero, Sebastian</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-63751</link>
      <pubDate>Fri, 22 May 2020 00:00:34 GMT</pubDate>
      <description>by Otero, Sebastian. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi. You can update it for moodle 3.5. Because this plugin is very good.&lt;br&gt;
&lt;br&gt;
Thank you&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-63751</guid>
    </item>
    <item>
      <title>Friday, 28 April 2017, 9:33 PM - Gaël Chardon</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-42434</link>
      <pubDate>Fri, 28 Apr 2017 13:33:53 GMT</pubDate>
      <description>by Gaël Chardon. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hello&lt;br&gt;
I can confirm that this plugin (and the simple drop down version) does not work on signup page: the list is not populated.&lt;br&gt;
The &quot;Warning: array_search() expects parameter 2 to be array, null given &quot; is a consequence of the missing data because the plugin is trying to find a default value.&lt;br&gt;
 &lt;br&gt;
I've found an easy fix (since there is not user id during the signup process):&lt;br&gt;
// Only if we actually need data.&lt;br&gt;
if ($fieldid !== 0 &amp;amp;&amp;amp; $userid !== 0) {&lt;br&gt;
became&lt;br&gt;
// Only if we actually need data.&lt;br&gt;
if ($fieldid !== 0) {&lt;br&gt;
&lt;br&gt;
Do yo see any issue with this &quot;fix&quot; Antonello ?&lt;br&gt;
&lt;br&gt;
Thanks&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-42434</guid>
    </item>
    <item>
      <title>Tuesday, 11 April 2017, 6:50 PM - sara rabie</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-42079</link>
      <pubDate>Tue, 11 Apr 2017 10:50:00 GMT</pubDate>
      <description>by sara rabie. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;thank you for this plugin but there is an issue appear on signup and multiselect appear empty &lt;br&gt;
but when try add new user as admin it added well and i see select list without any errors&lt;br&gt;
&lt;br&gt;
Warning: array_search() expects parameter 2 to be array, null given user/profile/field/dynamicmultiselect/field.class.php on line 113&lt;br&gt;
&lt;br&gt;
Warning: array_search() expects parameter 2 to be array, null given in /user/profile/field/dynamicmultiselect/field.class.php on line 114&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-42079</guid>
    </item>
    <item>
      <title>Wednesday, 22 February 2017, 5:42 PM - Saaid Agherdien</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-41089</link>
      <pubDate>Wed, 22 Feb 2017 09:42:28 GMT</pubDate>
      <description>by Saaid Agherdien. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Thank you and much appreciation Antonello for this quick response, i will try and follow your syntax in my context.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-41089</guid>
    </item>
    <item>
      <title>Wednesday, 22 February 2017, 5:24 PM - Antonello Moro</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-41086</link>
      <pubDate>Wed, 22 Feb 2017 09:24:32 GMT</pubDate>
      <description>by Antonello Moro. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Saaid,&lt;br&gt;
Of course you can. You will need to join the tables and extract the data you need. For example &lt;br&gt;
SELECT cc.id, u.username data FROM mdl_course_completions cc, mdl_user u&lt;br&gt;
where u.id = cc.userid&lt;br&gt;
Please consider that the acutal query will depend on the info  you need. So even though the above  query  is syntactically correct, it might not make sense in your context.&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-41086</guid>
    </item>
    <item>
      <title>Wednesday, 22 February 2017, 5:12 PM - Saaid Agherdien</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-41085</link>
      <pubDate>Wed, 22 Feb 2017 09:12:12 GMT</pubDate>
      <description>by Saaid Agherdien. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Antonello&lt;br&gt;
Thank you for this excellent plugin and the  update. I am able to select data from a single table with the query &quot;SELECT id, idnumber, fullname data FROM {course} WHERE category = 2&quot; Can i select  data from more that one table e.g the user,course and course_completions tables. If yes, do you have a sample query?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-41085</guid>
    </item>
    <item>
      <title>Sunday, 12 February 2017, 11:25 PM - Antonello Moro</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-40822</link>
      <pubDate>Sun, 12 Feb 2017 15:25:35 GMT</pubDate>
      <description>by Antonello Moro. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi folks, those issue should be fixed in the new version 1.1.0&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-40822</guid>
    </item>
    <item>
      <title>Saturday, 31 December 2016, 7:01 PM - Saaid Agherdien</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-40033</link>
      <pubDate>Sat, 31 Dec 2016 11:01:19 GMT</pubDate>
      <description>by Saaid Agherdien. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Antonello&lt;br&gt;
Issue: &quot;error reading from database&quot; occurs after deleting a user that made use of the created multi select field. The error occurs when want to add an activity to a course. This functionality is restored when I delete the created multi select profile field.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-40033</guid>
    </item>
    <item>
      <title>Thursday, 29 December 2016, 1:00 AM - Saaid Agherdien</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-40013</link>
      <pubDate>Wed, 28 Dec 2016 17:00:21 GMT</pubDate>
      <description>by Saaid Agherdien. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Antonello&lt;br&gt;
Thank for this plugin. I have created a multi select profile field in which our users can select multiple courses that they have completed. Individual users can thus login and update their profile with courses they had completed.&lt;br&gt;
I need to create and bulk upload users prepopulated with the courses that they have completed. The bulk upload will however only allow one of the courses from my multi select field. How can I get it to upload users with more than one course that they have completed. &lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-40013</guid>
    </item>
    <item>
      <title>Friday, 10 June 2016, 9:24 PM - Antonello Moro</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36356</link>
      <pubDate>Fri, 10 Jun 2016 13:24:14 GMT</pubDate>
      <description>by Antonello Moro. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Max sample reduced to 20, plugin description updated with suggested warning. Thanks for your help!&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36356</guid>
    </item>
    <item>
      <title>Friday, 10 June 2016, 9:06 PM - Mike Churchward</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36355</link>
      <pubDate>Fri, 10 Jun 2016 13:06:59 GMT</pubDate>
      <description>by Mike Churchward. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Antonello. The change looks good, although you might think of using less than 100 for the sample size. 100 returns screen scrolling necessary. But I imagine, in most cases, the field will be used for smaller data sets.&lt;br&gt;
I think you cannot warn users enough. Having dealt with hundreds of Moodle admins, mistakes are made. I really think it would benefit potential users to say something like:&lt;br&gt;
&quot;This plugin allows execution of raw SQL. Please be aware that executing raw SQL that has been improperly written can irreparably damage you site and/or cause performance issues. Please ensure you are aware of the impact of your SQL before executing it.&quot;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36355</guid>
    </item>
    <item>
      <title>Friday, 10 June 2016, 5:07 PM - Antonello Moro</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36342</link>
      <pubDate>Fri, 10 Jun 2016 09:07:54 GMT</pubDate>
      <description>by Antonello Moro. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Thanks guys&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36342</guid>
    </item>
    <item>
      <title>Friday, 10 June 2016, 1:54 PM - David Mudrák</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36326</link>
      <pubDate>Fri, 10 Jun 2016 05:54:10 GMT</pubDate>
      <description>by David Mudrák. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;p&gt;Thanks Antonello for sharing the plugin, and thanks Mike for detailed peer-review. I like the idea of the need to have a capability explicitly granted. Alternatively, the feature could be made available for site admins only. As long as users are aware of the risks, I think this is good to go. You are cleared to land, welcome to the &lt;a title=&quot;Auto-link&quot; href=&quot;https://moodle.org/plugins&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;Plugins directory&lt;/a&gt;!&lt;/p&gt;
&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36326</guid>
    </item>
    <item>
      <title>Friday, 10 June 2016, 7:25 AM - Antonello Moro</title>
      <link>https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36320</link>
      <pubDate>Thu, 09 Jun 2016 23:25:59 GMT</pubDate>
      <description>by Antonello Moro. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Mike, thanks for your review. &lt;br&gt;
You are right about security and performance, in fact, besides a notice in the readme about the risks of using this plugin, I have also provided a capability: profilefield/dynamicmultiselect:caneditsql that by default is not enabled. So an admin must enable the capability for a user/role before that role being able  to modify the select query.&lt;br&gt;
I have also provided a new version which fixes the bug of the number of records retrieved for the sample set. I have used the suggestion you provided to limit the number of rows returned by the query.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/profilefield_dynamicmultiselect#comment-36320</guid>
    </item>
  </channel>
</rss>