I have designed Power Apps Form to gather information from User. All the info is listed in Sharepoint List. User may retrieve the info using search in Power Apps and edit the info. However, I would like to limit the authorization to edit the info based on Specific column in Sharepoint. If only User is the same name as Project Leader, then User can edit or else User can only View. Project Leader is one of the columns in Sharepoint. How do I set the authorization for edit?
I have Project Listing as Datasource, Project Leader is one of the columns in Sharepoint. User is the person who log in as user. I am using Edit button to edit the info. Form1Registration is the screen for registration and editing.
My syntax is:
On-select fx
If('Project Leader_DataCard1'.DisplayName = User(),FullName, EditForm(Form1Registration), ViewForm(Form1Registration))
No error but when test, it doesnt work. The form cannot be edited, only view.