Lock form when someone else has it open

Is there a way to lock the form when other people have it in edit mode? We have an issue with users trying to edit the same list item at the same time.

Hi,

Do you mean saving a form in the designer by multiple users simultaneously or editing an item in the browser? If the second case - what happens to those users - does one get an error or overwrite changes of the first one?

User 1 will have the form open in edit mode, this user is making changes to the form

User 2 will open the form at the same time and edit one field (an assignment field) and save the form

User 1: Saves the form, does not get an error but changes are not saved to the list.

Hi,

If the item is edited by two users, the last changes will be applied. So most likely the User 2 saves his changes after the User 1.

For now, Forms does not let users know if somebody else working with the same item but overwrites changes even if they have been made after opening the form.

Is there any way to detect if the item is being edited? Then the form could at least be configured to the show an overlay message saying 'someone else is working on this item, please try again later' .

Hello @abolam,

There is no way to achieve this out of the box, only using custom code.

For instance, you can save the login of the current user and the current time into a separate field with PNPjs and check this field on opening the form. If the field has been changed recently and the login name does not match the current user, then display a conflicting message.

If you need help with the code, you can use paid support. Please contact us via support@plumsail.com for more details.