cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

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
Highlighted
Super User
Super User

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
Highlighted
Super User
Super User

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,440)