Ability to add edited_user_role on Field Group

Support MB Include Exclude Ability to add edited_user_role on Field GroupResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15783
    daveheslopdaveheslop
    Participant

    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:

    1. User Role
    2. User
    3. 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

    #15794
    Anh TranAnh Tran
    Keymaster

    Hi Dave, I'll add this to the Builder. Please give me some time.

    #15796
    daveheslopdaveheslop
    Participant

    @rilwis Legend 😉

    #15815
    Anh TranAnh Tran
    Keymaster

    Hi Dave, these params are added to the Builder 3.2.0. Please update.

    #15816
    daveheslopdaveheslop
    Participant

    That was quick! Thanks Anh 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.