Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand

Posts Tagged ‘lock edit form’

Lock the OOB Edit Form

Posted by Jean Paul on August 20, 2015

In this article we can explore a typical real-world scenario.

Scenario

You have a SharePoint list. You have a custom new/edit/delete form for it. The custom form will allow controlled editing of the item, plus some validations.

It means User A cannot edit User B’s item. Exceptions are Approvers group.

How to achieve this?

Solutions

I am recommending various solutions for this scenario.

Solution 1: Item Level Permissions

One easy solution is using the List > Advanced Settings > Item-Level Permissions.

image

But, this solution won’t work if you need Approvers group to edit the items.

Solution 2: Delete Edit Form using SharePoint Designer

Open the list in SharePoint Designer > Locate the EditForm.aspx > Choose Delete option.

You can refer the post here:

http://www.jeanpaulva.com/index.php/2015/08/18/delete-oob-edit-form-using-sharepoint-designer/

Solution 3: Hide Ok Button of Edit Form

In this method you can inject a JavaScript to the Edit Form using Browser.

The JavaScript should hide the OK button of the form.

image

Please note that we cannot change the permission of the user as there are other permission-sensitive forms to work on. This is the reason we are locking OOB Edit Forms.

Summary

In this article we have explored a real-world scenario of locking OOB Edit Forms.

Posted in SharePoint, SharePoint 2013 | Tagged: , , | Leave a Comment »