No Code Attached Yet
avatar ashik685
ashik685
25 Aug 2021

Steps to reproduce the issue

I check that type="usergroup" is not working in Joomla 4. There is not way to select usergroup

Expected result

But it needs to be a dropdown to select them

Actual result

Nothing works.

System information (as much as possible)

Joomla 4

Additional comments

avatar ashik685 ashik685 - open - 25 Aug 2021
avatar joomla-cms-bot joomla-cms-bot - change - 25 Aug 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Aug 2021
avatar alikon
alikon - comment - 25 Aug 2021

should be type="usergrouplist"

avatar richard67
richard67 - comment - 25 Aug 2021

@ashik685 Like it was in Joomla 3 it still is in Joomla 4, see the comment above by @alikon : You have to use the right type "usergrouplist". See also https://docs.joomla.org/J3.x:Adding_custom_fields/Usergroup_Field .

avatar richard67 richard67 - change - 25 Aug 2021
Status New Expected Behaviour
Closed_Date 0000-00-00 00:00:00 2021-08-25 14:23:24
Closed_By richard67
avatar richard67 richard67 - close - 25 Aug 2021
avatar richard67
richard67 - comment - 25 Aug 2021
avatar roland-d
roland-d - comment - 20 Oct 2021

Actually the usergroup field type does exist in Joomla 3 as well. See the documentation at:
https://docs.joomla.org/Usergroup_form_field_type

Yes, the usergrouplist works in both Joomla 3 and Joomla 4.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35358.

avatar brianteeman
brianteeman - comment - 20 Oct 2021

JLog::add('JFormFieldUsergroup is deprecated. Use JFormFieldUserGroupList instead.', JLog::WARNING, 'deprecated');

Add a Comment

Login with GitHub to post a comment