cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ddas
Helper II
Helper II

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
v-xida-msft
Community Support
Community Support

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.

View solution in original post

4 REPLIES 4
v-xida-msft
Community Support
Community Support

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.

View solution in original post

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

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

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (37,039)