I am using TabbedScreenFlow7 harnesss and wanted an option to Cancel the case when in the screenflow.
I accomplished the same by adding a Cancel button to the TabbedScreenFlow7 harnesss and configuring the button for the following Actions OnCLick.
Run Activity - CancelScreenFlow
And I have configured an Assignment in the same flow from which screenflow was called to catch the Withdraw ticket that would be Set by the CancelScreenFlow activity.
It seems to be working fine.
But if there are fields with Client Side validations ( like required fields ) in the UI - we are getting the error 'Please correct flagged fields before submitting the form' on click on the Cancel button.
But the actual Cancellation of the case takes place. So even after we get this error if we just close the case tab and open the case again, it would have moved to the assignment where the Withdraw ticket was Set.
I have tried different options in the below link - but none of them is working for the TabbedScreenFlow7 harnesss.
The only option that worked was Disabling the 'Client Side Validation' on the Advanced tab of the TabbedScreenFlow7 harnesss - but this will have the issue of the validations errors NOT being shown till the Submit is done - which spoils the UI experience.
Please let me know if there are any other workaround for the same.
Could you please explain what UserWorkForm is used for and how calling the script with the parameters is helping us to work around the issue. ? I would relaly like to understand how this change fixed the issue.
UserWorkForm is an extension point(available rule) for the application developers to include their custom JS and CSS code. The only caveat is that this UserWorkFrom (HTML Fragment rule) gets included into all the harness rules, so basically the JS APIs and css rules included here will be applicable for the whole application / across all the harnesses.
If you want to implement a JS API specifically for a particular harness rule, then we would suggest you to do the following,
Add the above script file to harness under scripts & styles tab