Answered by:
Restrict users to access Default SharePoint list forms.

Question
-
How can I restrict users to access default forms(NewForm/EditForm/DisplayForm) of specific sharepoint List. Users do have permission to insert/update/view data of the list. We are using SP Add in to perform these operation. Still users can access those default forms. Is there any approach which can be implemented so that default forms would not be accessible by the users.
I tried to change the URL of content type but that didnt work.
Thanks in Advance :)
SJ.
Thursday, June 29, 2017 1:16 PM
Answers
-
Hi
another approach
set your new forms as default, and delete the old ones
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.
- Proposed as answer by Lisa Chen1226Microsoft contingent staff Tuesday, July 4, 2017 9:54 AM
- Marked as answer by SPDev SJ Friday, July 7, 2017 6:18 AM
Tuesday, July 4, 2017 7:16 AM
All replies
-
Hi ,
You can restrict the users by adding client script to those forms which can be redirection to the SP add in or redirect to home page .
Thursday, June 29, 2017 2:23 PM -
Is there any alternate solution. Can I modify these settings from code behind using CSOM ?Tuesday, July 4, 2017 4:50 AM
-
Hi
another approach
set your new forms as default, and delete the old ones
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.
- Proposed as answer by Lisa Chen1226Microsoft contingent staff Tuesday, July 4, 2017 9:54 AM
- Marked as answer by SPDev SJ Friday, July 7, 2017 6:18 AM
Tuesday, July 4, 2017 7:16 AM -
Hi Donca,
Thanks.
I tried this approach. I did it by using power shell script by changing new form url for the content type. I set my created page with the Iframe which will open my Add In URL. but when I am clicking on the "New Item" link, it shows me "Some thing went wrong".
I checked ULS logs & found that its showing an error like "Invalid Field Name(xxxx-xxx-xxxxxx some id)".
FYI, I have created this page using CSOM when my add in got installed on web. When I tried same thing by creating page directly from the browser, that worked.
Any suggestion on this.
Wednesday, July 5, 2017 7:11 AM -
I was trying with the Wiki page which was showing me an error. I tried using webpart page & worked.
Friday, July 7, 2017 6:18 AM