Hi All,
So here, i using related action for Return form the manager, based on return status i make a visibility condition to display the Related action,
problem:when shopkeeper accidentally click and submit the form , the manager will get two Tasks in Same Instance.
related action form.
Discussion posts and replies are publicly visible
It is a bit difficult to understand what is going on. Can you try to explain in more detail?
When user accidentally double clicks on a related action shortcut , two instance is getting generated. Is there any way to avoid this ?
Hi, I think we can apply visibility over the related action if the instance is generated the related action must not be visible.
how can write a condition.?
Do you have any table in database where you store the task details.
yes.
So create a query rule which gets the data for the particular request's task and if you have the data then set the visibility to false else true.
NOTE : You must have something unique to identify the task
How about using loadingIndicator parameter for the Submit button. It doesn't allow the user to hit the button twice until the first instance is completed
What is the user experience supposed to be for the user who clicks the related action, when they just click it once (as they're supposed to)?
Are you saying it starts an unattended process in the background that sends a task to someone else?
That's the only way I can think of where someone would "accidentally click the related action twice", since if the initial user had an attended form/task to submit, then there would be no way for them to "accidentally double click" anything that I can think of.