I’ve been trying to add a User field group such that it is only visible when I’m editing the profile of a user with a particular Role.
I know the functionality exists in the Include Exclude extension, so you can write…
'include' => [ 'edited_user_role' => 'employer', ],
…to target the profile of an ’employer’ role, for example. This works perfectly.
HOWEVER, in the Edit Field Group UI, the include/exclude options are:
- User Role
- Custom callback
Do you know of any way of achieving this via the Edit Field Group UI, without using a custom callback?
If you’re watching @rilwis, do you intend to add edited_user_role to the list of available include/excludes in the UI? 😀
You must be logged in to reply to this topic.