...
This custom JavaScript will save the flow to the user's task list instead of displaying that next step to the user immediately. The user can then go back to their task list at a future time to resume their task. This JavaScript is effectively clicking the Save button when flow moves to second step. This will create a task in that users task list and then navigate that user to his home page.
Code Block |
---|
<script> /* <![CDATA[ */ saveTask = function () { if(document.getElementsByName('temp')[0].value == 0) { document.getElementsByName('temp')[0].value = "saved"; UberController.valueChangeObserver({target:document.getElementsByName('temp')[0]}, document.getElementsByName('temp')[0].parentNode.parentNode); FlowView.getSaveButton().click(); alert ("Task added to task list"); window.open("https://<your frevvo server host:port>/frevvo/web/tn/<your tenant>/user/" + document.getElementsByName('username')[0].value + "/app", "_top"); } } setTimeout(saveTask, 500); // set the initial timer /* ]]> */ </script> |
In order to use this solution you will also need to:
...