1
0
-1

Dear expert,

I have a form attached to the workflow activity, i would like to know how can i trigger the "Save as Draft" button, when the user leave the form by navigate somewhere from menubar or close the windows ?

Best Regards

Tony Chu

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Dear Hugo,

      BTW, the reason why i want to do this is because I want to track the event of the Performer that have read/open the tasks or not. Do Joget OOTB have capture this event or not ?

       

      Best Regards

      Tony Chu

        CommentAdd your comment...
      1.  
        1
        0
        -1

        You can probably write some client side scripting to handle this.

        I'm not sure if this is the intended behaviour that you want to exert on.

        What's on the screen does not constitute to what the end user wants to key in or to submit, even as draft. Furthermore, user may have left the machine and its open to others to manipulate.

        Cheers.

        1. Tony Chu

          Dear Hugo, I did use the following Client Script but it seem not working. Please advise <script type="text/javascript"> $( document ).unload(function(){ $('#saveAsDraft').submit(); }); </script> Best Regards Tony Chu

        CommentAdd your comment...