cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cooltechie
Level: Powered On

Making form read only after the status field is Approved.

Hi,

 

I have a  power apps customized SharePoint list form where I would like to make the form "Read-only or disbaled" for the current logged in user but editable to the current logged in user's manager. 

 

The current logged in user and manager are captured automatically in two different fields and are not editable.

 

Please advise.

 

Thank you

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
seadude
Level 10

Re: Making form read only after the status field is Approved.

Hi @cooltechie. There are a few ways to do this type of thing in PowerApps. Some kind of flag for the "field user" vs. "manager user" is helpful. Sometimes, a flag like this exists in your Active Directory (usually something like "Scheduled", "Exempt", "Manager", etc.).

You could also create your own access list. Add a Permission Column of some sort. From there you can do a Filter, determine what privaleges the user should have, and switch either the Form Mode or the DisplayMode of individual fields.

Example:

  • Screen1 of App
    • OnStart Property
    • If(
          Filter(Sharepoint_User_List, 
      varUserName = nameColumn,
      myADFlag = X,
      permissionColumn = "true"
      ), FormMode.Edit, FormMode.View )

I believe you're limited to a list of <2000 or less records, so this may not work for your org.

- Shane Young has  a great video on Forms you should search YouTube for.

Good luck!

View solution in original post

1 REPLY 1
seadude
Level 10

Re: Making form read only after the status field is Approved.

Hi @cooltechie. There are a few ways to do this type of thing in PowerApps. Some kind of flag for the "field user" vs. "manager user" is helpful. Sometimes, a flag like this exists in your Active Directory (usually something like "Scheduled", "Exempt", "Manager", etc.).

You could also create your own access list. Add a Permission Column of some sort. From there you can do a Filter, determine what privaleges the user should have, and switch either the Form Mode or the DisplayMode of individual fields.

Example:

  • Screen1 of App
    • OnStart Property
    • If(
          Filter(Sharepoint_User_List, 
      varUserName = nameColumn,
      myADFlag = X,
      permissionColumn = "true"
      ), FormMode.Edit, FormMode.View )

I believe you're limited to a list of <2000 or less records, so this may not work for your org.

- Shane Young has  a great video on Forms you should search YouTube for.

Good luck!

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 319 members 5,819 guests
Recent signins:
Please welcome our newest community members: