Cancel a case
Posted: Thu May 09, 2019 9:06 am
Can you cancel a case on button click?
workflow simplified
https://forum.processmaker.com/
PMFCancelCase(@@APPLICATION);
header("Location: casesListExtJsRedirector");
die();
HeshanKaru1994 wrote: ↑Fri May 10, 2019 1:08 am So here you have to click cancel button and then submit the form. I want the implementation as once you click on the cancel button it routes to the end of the case.Canceling will stop the case at its current position in the process. Once you cancel the case, you can't route to the end of the case. If you want to route to the last task in the case, then you need to add a path to your process to skip to the last task in the process:
$("#cancelBtn").find("button").click( function() {
$("#routeToLastTask").setValue("yes");
});