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.
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.
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.