So I am working on a form that is customize (using customize this form off SharePoint list) and I have the display mode set to
If(DataCardValue14.Selected.Email = User().Email,DisplayMode.Edit, DisplayMode.View)
DataCardValue14 is a people picker.
When I go to click on new in SharePoint, people can set this value (when they shouldn't) and when editing an item, nobody (including the person set in DataCardValue14) can set this value.
Can someone please tell me where I may be going wrong?
My solution is based off https://powerusers.microsoft.com/t5/Building-Power-Apps/Some-fields-editable-by-created-by-person-only-in-Powerapps-form/td-p/298893 (and that didn't work for me as well).
Thank you in advanced 🙂