AnsweredAssumed Answered

Auto-Save Form in User Task

Question asked by joeblue on Dec 20, 2016
Latest reply on Dec 22, 2016 by joeblue

Has anyone successfully implemented a way to auto-save the data entered by an end user in the Form while they execute their assigned User Task?

 

I'm building an app in Activiti Enterprise 1.5.2. Out-of-the-box, it will only save the form data when an end user deliberately clicks the save button at the top or bottom of the form. If they navigate away from their Task without clicking save, they will lose all the data they entered. 

 

The closest I've come is using scope.saveForm(); in Javascript, but every time it's called, it refreshes the form, which takes the focus away from where the end user was on the form. If the end user was at the bottom of the form, the refresh brings them all the way back up to the top. That's bad UX, so this won't work.

 

I'm new to Activiti, so I'm not familiar with all of its guts, but maybe it's possible to customize the saveForm() function to skip the form refresh?

 

Any thoughts from the community would be greatly appreciated. Thanks.

 

-Joe

Outcomes