I have a Yes/No field in a SharePoint list that I want to hide for users whose email is not in a different text field (Emails) in the list. The email would be stored like this: UserA@contoso.com; UserB@Contoso.com
Assuming I am UserA, I should be able to see the field. I am showing and hiding the field using this formula in the Visible property:
If(Find(Lower(Emails), Lower(User().Email)) > 0, true, false)
This works as long as I am the only user in the Emails field (field value = UserA@contoso.com). It stops working once there are two users (UserA@contoso.com; UserB@Contoso.com)
I have added a label to show how the Find function is behaving which looks like this:
Find(Lower(Emails), Lower(User().Email))
The label is empty when there are two or more emails and 1 when I am only email. When I try the same values in Excel I get an actual number for both cases. Can anyone explain the difference?