Closed padhumailin closed 9 months ago
I do not understand your question. Do you mind rewording?
@padhumailin seeing as my team has run into this I will give you my answer (as a customer, I'm not with Form.io): when my and my team are both in Form.io, working on a form, and we click save, it overwrites whatever the other person was doing. Form.io does not handle 2 users concurrently working on the same data (whether that be a form or a saved submission).
However, Form.io backend DOES have the ability to turn on version control for a form if you are an Enterprise user. Perhaps you could implement some kind of "pre save" check before you call "saveForm" that checks that you are only incrementing the version by 1 and then prevents the save until the user refreshes the form first? Obviously more advanced version control concepts like merging or updating would be amazing (proposed solutions to the general problem are well detailed here: https://stackoverflow.com/questions/3564877/how-do-you-manage-concurrent-access-to-forms), but Form.io doesn't have any of them right now.
Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!
Any customization to a form requires to call formio.saveForm once changes is done. I believe this is updating the form definition overall. how the concurrent update affect while viewing the form.