- This topic has 4 replies, 2 voices, and was last updated 1 year, 4 months ago by .
-
Topic
-
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
- User
- 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? 😀
Cheers, D
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.