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

How to remove edit access to an item on a list after a user finishes filling out form.

Some background on the apps. we have on app that an employee can fill out and then all the answers are saved to a list. We have another app that they can use to edit their responses but we are looking for a way to close the file for editing after a certain time or have a button that they can use to make a final edit. Also the file still need to be editable by their manager. Any Ideas? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: How to remove edit access to an item on a list after a user finishes filling out form.

Hi @ddas,

Could you please share a bit more about your scenario?

Do you want to remove the Edit permission to an SP List item for a specific user after he finishes out the form using PowerApps?

If you want to remove the Edit permission to an SP List item for a specific user within PowerApps, I afraid that there is no way to achieve your needs currently.

As an alternative solution, if you want to close the file for editing within a certain period of time, you could consider add a Condition when you/end users run the app to check if current time is within the certain period of time, if yes, navigate the users to the Non-functionality screen (New screen which has no functionality).

In addition, you could add a Condition to check if the current login user is a manager, if yes, he could access this app.

I assume that you don't want the end users to access your app between 10:00 to 12:00 every day (except the Manager), I have made a test on my side, please take a try with the following workaround:

Set the OnStart property of the first screen of your app to following formula:

If(
  Value(Text(Now(),"[$-en-US]HHmm"))<Value(Text(Time(10,0,0),"[$-en-US]HHmm")) || 
Value(Text(Now(),"[$-en-US]HHmm"))>Value(Text(Time(12,0,0),"[$-en-US]HHmm")) ||
User().Email="Manager Email", /* <-- Check if current login user is manager */
Navigate(MainScreen, ScreenTransition.Cover),
Navigate(Non-functionalityScreen, ScreenTransition.Cover) /* <-- Limit end users' access, navigate to Non-functionality screen */ )

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Highlighted
Community Support Team
Community Support Team

Re: How to remove edit access to an item on a list after a user finishes filling out form.

Hi @ddas,

Could you please share a bit more about your scenario?

Do you want to remove the Edit permission to an SP List item for a specific user after he finishes out the form using PowerApps?

If you want to remove the Edit permission to an SP List item for a specific user within PowerApps, I afraid that there is no way to achieve your needs currently.

As an alternative solution, if you want to close the file for editing within a certain period of time, you could consider add a Condition when you/end users run the app to check if current time is within the certain period of time, if yes, navigate the users to the Non-functionality screen (New screen which has no functionality).

In addition, you could add a Condition to check if the current login user is a manager, if yes, he could access this app.

I assume that you don't want the end users to access your app between 10:00 to 12:00 every day (except the Manager), I have made a test on my side, please take a try with the following workaround:

Set the OnStart property of the first screen of your app to following formula:

If(
  Value(Text(Now(),"[$-en-US]HHmm"))<Value(Text(Time(10,0,0),"[$-en-US]HHmm")) || 
Value(Text(Now(),"[$-en-US]HHmm"))>Value(Text(Time(12,0,0),"[$-en-US]HHmm")) ||
User().Email="Manager Email", /* <-- Check if current login user is manager */
Navigate(MainScreen, ScreenTransition.Cover),
Navigate(Non-functionalityScreen, ScreenTransition.Cover) /* <-- Limit end users' access, navigate to Non-functionality screen */ )

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ddas
Level: Powered On

Re: How to remove edit access to an item on a list after a user finishes filling out form.

Thanks for the suggestion. This actually might be a good workaround. I will try it tomorrow and let you know how it goes.

ddas
Level: Powered On

Re: How to remove edit access to an item on a list after a user finishes filling out form.

I added your solution on a button and it works great! Thanks for the helpSmiley Happy

ddas
Level: Powered On

Re: How to remove edit access to an item on a list after a user finishes filling out form.

Hi v-xida-msft,

 

I have a quick question. We are going to have a time limit for how long people can take to fill out the form. Lets say one month and after that one month it's closed off. Is there a way to open it for just one person in case they didn't get it done on time. We don't want everyone to be able to edit their form again just that one person?

 

Thanks,

 

ddas