No ratings

How to customize the error message when a user opens a task that has been actioned


Symptoms


When an end user opens a task that has been actioned the below error is seen. This is common with Task that get assigned to multiple destinations but only requires one or more to action the item to complete it. Developers might want to replace this OOTB message with something more user friendly.


 


8101i650095E68D0BF7D3.png

 


 

 


Solution



    • Find the Form used for the task as well as the form state the task uses.

    • Edit the form > Ensure you select the STATE used by the Workflow Task Event and edit the “When the Form is Initializing rule”


8102i0A99D51F6BB9468E.png



    • When the form is Initializing there is a check if the current workflow activity is a specific activity this is where it will fail if a user opens a task that has been actioned. Directly underneath that rule add the following.

    • Condition > Error occurred

    • In the condition add an Action > show a message to the user

    • Below this add Acton > stop rule execution


8103iF1181442735D7044.png


With this configuration the OOTB Error message will not be shown and instead it will show the message configured and is fully customizable.


 


8104i3EE8AF51EDBB2FBB.png

Labels: (1)
Version history
Last update:
‎08-24-2021 09:39 AM
Updated by:
Contributors