General developer forum

Users/Cohorts list in form

Picture of Dorel Manolescu
Re: Users/Cohorts list in form
Plugin developers


For users list : I don t think is a good idea to have a drop-down with all the users in your form as it will cause performance issues to the limit of the page not being responsive. 

I suggest you to use the 'user filter' moodle component mixed with your other form items. (see screen-shot of user filter from ../admin/user.php ). Search the code for:  $ufiltering = new user_filtering('', '', array()); to see how you can use it.

Also this is a great resource on how to use forms:

Let us know!


Average of ratings: -