I am using custom picker
In that custom picker I am fetch group member from a group
like this :
Now i want show user image before his/her namelike this :
Any suggestion for this how can I do it ?
Discussion posts and replies are publicly visible
Why not just use User picker for this and apply group filter?
Hi SanchitI am fetching member of groups from a group.Then i am putting a condition that If logged in user is part of group then the name of logged in user should not be visible in custom picker.Can you tell how can i do this in user picker ?
Hello Pawan Lalwani as far as I am aware you can get that image only if you are using User Picker. But I couldn't find anything to filter out the existing users name from the list. You will have to do it using custom picker field and using the custome picker field you can use the link and show a profile when you hover on it. You need to configure the selectedLinks parameter and use the a!userRecordLink().
Not sure if this is how you want it. But you can try and check it.
It is not possible to apply such filters in User picker.
But in Custom Picker also you can only have list of text strings as labels and so it's not possible to display userImage.
You can potentially prevent the user to select himself by playing with saveInto of User picker, but there is no way to remove him from suggestion list, which is certainly what you want.
a!save( local!users, remove( save!value, wherecontains(loggedInUser(), save!value) ) )
You can either just remove that user on the fly or you can add a validation, which in my view, is a better approach as the user is notified about the issue rather than just deleing something they just entered, leaving them in a confused state.
Have you tried using the Record picker along with the User record and a filter?