Hello,
In Power Apps I'm trying to make a field display only unless the user's email address is in one of two roles (Chair, Chair's deputy). I've tried different variations of code in the DisplayMode box for the field, but I can't get any of them to work. This is what I've got at the moment. I've also tried using the corresponding datacard values for those details, but that hasn't worked either. Any tips would be appreciated.
If(Or(User().Email=ThisItem.'Chair',User().Email=ThisItem.'Chair''s deputy'),DisplayMode.Edit,DisplayMode.Disabled)
If(Or(User().Email=DataCardValue29.Selected.Value),(User().Email=DataCardValue9.Selected.Value)),DisplayMode.Edit,DisplayMode.View)