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
Your logic shows the message in case the user is a member of that group. Is that what you want?
yes, if the selected user is belongs to that user then show error/warning message
OK, but what is wrong with it? What did you do to test your logic?
my logic is showing warning message to all selected users but not some particular user
for ex: all users- abc,xyz,pqr,wtu,ijk
for users - abc,wtu when i select these users then it has to show warning message
my logic is showing warning message when i select pqr/xyz
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.
you can update you logic like below
if( a!isUserMemberOfGroup( ri!approver_txt, cons!CR_GRP_ALL_CCC_USER_GROUP ), cons!CR_NEXT_AUTHORITY_VALIDATION_MESSAGE[3], "" )
i have written like this but message 3 is not showing when i select ccc_user name
Isusermemberofgroup returns boolean value but here your checking with Text/user type, Don't check the value use Isusermemberofgroup alone like below.
if i make changes like that which will give me error like below