Can profile fields be limited to user groups in backend? It seems that if you want required front end fields for users registering then admins in backend have to have these as compulsory when creating admin accounts.
1 Answer
Custom fields are attached to Users, not User Groups.
Seems like you'd be able to do what you want on the template side, though. i.e. something like "if user is in group A, show field B, otherwise hide it".
Or perhaps something like the Reasons plugin is the way to go, which adds conditionals to fields/field layouts.
-
Thanks Brad. Its not a front end issue as such since i want to create admins and not have to fill out the user fields for the admins. If i switch front end registration to javascript only validation of form then I could get around it - but i am committed to server side validation now ;)– joomkitCommented May 3, 2017 at 11:17
-
Ahh... sounds like it's time for a custom plugin, then. :)– Brad Bell ♦Commented May 3, 2017 at 19:23
-
Getting my plugin stripes just now...but how would you go about limiting user profiles to non admin groups? WHat hook am I after?– joomkitCommented May 3, 2017 at 19:34