Pop-up Message when Multiple Users Open e-Form
Hello,
I am wondering if there is a way to write a javascript code (or another workaround) to display a nice message when a second user opens an eForm.
Right now, User 1 opens the eForm. User 2 opens the eForm at the same time. Both can edit the eForm. User 1, who opened the eForm first, is able to submit his form data. User 2 tries to submit his form data at the same time, but gets an error message upon hitting the submit button. User 2 must then reload the entire page and redo all of his work.
I would like for User 2 to see a pop-up message upon OPENING the form when User 1 already has it open. Something like "Form is in use by User 1. Please try again later."
How can I write this in Javascript? Are there any other options?
Thank you
-
Hi Kayleen,
Unfortunately, we don't have any OOTB feature which supports your use case. Currently, we have it only when submitting the form user will be challenged to "reload the page and submit again" if anything specific to AgilePoint schema got updated, else user will be allowed to submit the form.
Thanks
-
Kayleen,
I spent a good deal of time myself trying to come up with a way to warn users if someone else already has a form open but was never able to do it.
The challenge with this is the fact that the data behind the form (in the process schema) does not get updated until the user submits the form. So if two users open a form at the same time and make changes to fields, who ever submits first will have their changes updated to the schema. Then when the second user tries to submit, the system will recognize that the schema data has changed since the form was loaded and pop-up the "reload" message.
Also keep in mind that it doesn't even have to be the same form. You could have two different forms that share a common field. If that common field is updated while another form is open that uses it, that second form will then get the "reload" message when the user tries to submit.
Please sign in to leave a comment.
Comments
2 comments