Is there a way to lock the edit form link for a list item if another user already has edit form open for the applicable list item?
you can use SharePoints built-in check-in/check-out functionality to avoid users to make changes while another user is editing the item at the moment.
I am looking to lock editing of a form for a list; not a library document.
There does not appear to be any ‘check out’ option for list items; only for library documents.
Is this something I could activate on a list? At present, it is not an option on any of the list/form sets I developed.
Thank you –
you're right there is no checkin/checkout functionality available for list items, my bad. There are workarounds to provide this functionality for lists as well (e. g. here: http://www.c-sharpcorner.com/UploadFile/0e18a8/check-in-and-check-out-functionality-for-custom-list-items-i/) but I'm afraid this is not exactly what you want as it won't automatically check out the item when someone edits it.
The only other option I can think of at the moment is to use event receivers. You have an "ItemUpdating" and an "ItemUpdated" event. For the updatING event you could strip the permissions for anyone else than the current editor. For the updatED you would have to restore the permissions, so anyone can again change the item. Should work, but never tried it myself...
Hi Judianne Livermore,
This is a tricky thing to do, personally I'd have a custom save action on the form that checks to see if the item has been modified since it was opened. At least then you could get the user to refresh the screen before carrying on editing.
Hi Jan –
By any chance does your custom action allow the user to keep any edits they have made to the form before they refresh the screen?
The logic would be interesting, but in theory yes. You'd need to think very carefully about what you'd want to do if the more recent attempt at edit overwrote previous values, whose edit should be allowed?
Retrieving data ...