Hi,
i have a picker field when i select some particular users names it has to show validation message else no
i have written like this but it is showing for all users whoever i select in picker field
Discussion posts and replies are publicly visible
Please note that function loggedInUser() does not have parameters. You can remove it and pass the username as first parameter of the a!isUserMemberOfGroup() function.
If this does not resolve your issue you may not have enough rights to view the users or group contents you are requesting. Check group visibility policies for this.
Thanks Laurens, I did not spot that.
You are not checking for the selected user, but always for the logged in user, which is you.