cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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!

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!

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 250 members 4,424 guests
Please welcome our newest community members: