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

Disable editing a Sharepoint List item from the Sharepoint mobile app

I have a powerapps customized form with logic to prevent users from editing the form once it's submitted. However, I realized that if you download the sharepoint mobile app, it allows you to make edits to the item in the classic view.
Has anyone found a way to disable this functionality? I've removed all the fields from the content type item and this prevents it from creating a new record, but the fields still show up when you edit the item.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @lui ,

Do you customize a form within your SP List using PowerApps?

Do you want to prevent the end user from editing the SP List Item submitted through the custom form app?

 

Based on the needs that you mentioned, I think this issue is related to Permission. I agree with @leyburn19 's thought almost, you could consider change the permission of the submitted List Item for the creator/submitter, then they could not edit this SP List Item after submitting the item.

 

You could consider set up a flow (Power Automate) to update the permission of the submitted SP List Item for the requester/creator (current sign in user). On your side, you should add the "When an item is created" trigger of SharePoint as the Trigger of your flow, and then add a "Send an HTTP request to SharePoint" action of SharePoint connector or "HTTP" action to send an HTTP request to SP REST API to update the permission of this submitted List Item for the requester or creator.

 

Please check and see if the following video would help in your scenario:

https://www.youtube.com/watch?v=_-vvlPXv8rc&t=730s

 

In addition, as an direct solution, I think the "Stop sharing an item or a file" action and the "Grant access to an item or a folder" action of SharePoint connector could also achieve your needs. Please consider configure your flow as below:

5.JPG

When the user submit a new item in your SP List, the above flow would be fired, and then change the permission of the submitted item into "Can View" for the creator/submitter.

Please also check and see if the following video would help in your scenario:

https://www.youtube.com/watch?v=FMssPZQGVrU

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

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
leyburn19
Memorable Member
Memorable Member

JesperHuang
Helper I
Helper I

Hi @lui ,

 

It's better to use power apps to create new app for user to edit item instead of using sharepoint.

you can keep sharepoint as your database, and user can only edit item through power apps.

 

And follow steps below to set up sahrepoint permission:

1) Modify the Read permissions level to only include site permission 'Open  -  Allows users to open a Web site, list, or folder in order to access items inside that container.'

2) Add users to the 'Site Visitors' group which gives Read permission to the site

3) Stop Inheriting Permissions on the concerned lists

4) Modify the 'Contribute' permissions level to only include: 

Site Permissions - Open  -  Allows users to open a Web site, list, or folder in order to access items inside that container. & View Pages  -  View pages in a Web site.

List Permissions - View Items  -  View items in lists and documents in document libraries. & Edit Items  -  Edit items in lists, edit documents in document libraries, and customize Web Part Pages in document libraries. & Add Items  -  Add items to lists and add documents to document libraries.

5) For the concerned lists give the Visitors user group Contribute access to the list.

 

Hope this help

 

 

v-xida-msft
Community Support
Community Support

Hi @lui ,

Do you customize a form within your SP List using PowerApps?

Do you want to prevent the end user from editing the SP List Item submitted through the custom form app?

 

Based on the needs that you mentioned, I think this issue is related to Permission. I agree with @leyburn19 's thought almost, you could consider change the permission of the submitted List Item for the creator/submitter, then they could not edit this SP List Item after submitting the item.

 

You could consider set up a flow (Power Automate) to update the permission of the submitted SP List Item for the requester/creator (current sign in user). On your side, you should add the "When an item is created" trigger of SharePoint as the Trigger of your flow, and then add a "Send an HTTP request to SharePoint" action of SharePoint connector or "HTTP" action to send an HTTP request to SP REST API to update the permission of this submitted List Item for the requester or creator.

 

Please check and see if the following video would help in your scenario:

https://www.youtube.com/watch?v=_-vvlPXv8rc&t=730s

 

In addition, as an direct solution, I think the "Stop sharing an item or a file" action and the "Grant access to an item or a folder" action of SharePoint connector could also achieve your needs. Please consider configure your flow as below:

5.JPG

When the user submit a new item in your SP List, the above flow would be fired, and then change the permission of the submitted item into "Can View" for the creator/submitter.

Please also check and see if the following video would help in your scenario:

https://www.youtube.com/watch?v=FMssPZQGVrU

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

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.

I just used your solution and it works great, even with the SharePoint mobile app (which don't take into account the PowerApps customized form...).

 

Thanks !

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (2,433)