2

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 1

1

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.

3
  • 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 ;)
    – joomkit
    Commented 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?
    – joomkit
    Commented May 3, 2017 at 19:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.