Okay here's my situation. I create a page where I have a gallery that displays items from my source table on Sharepoint lists. When a user double clicks an item, I set the OnSelect property as follows:
Select(Parent) & Navigate(EditRequestScreen, ScreenTransition.UnCoverRight, {ViewItem: ThisItem})
Basically, we just navigate to the EditRequestScreen and we can view the specific item that was selected.
On EditRequestScreen, the items are displayed correctly using Form control. On the screen, I have 2 buttons a Delete button and Edit button. I want to enable users to edit their records in this page. However, users can see other user's records as well which is not an issue. I want to disable the Delete and Edit button if the current user's email is not equal to the Created By email. This is what I have tried on one of the buttons' DisplayMode:
If(ViewItem.'Created By'.Email = User().Email, DisplayMode.Edit, DisplayMode.Disabled)
Appreciate if anyone could help me with my formula for this purpose 🆘🆘😣