How can I hide the Cancel request button in the Job web toolbar?
This troubleshooting FAQ explains how to control visibility of the Cancel Request button in the Job web toolbar, and outlines the preferred approach for managing this behaviour. An example of why this might be wanted is that a task does specific actions on approval or decline, cancel may interfere with this design, as there is currently no workflow event for the cancel event.
How do I hide the Cancel Request button in the Job web toolbar?
There are two ways to control the visibility of the Cancel Request button.
Preferred approach: control visibility per task
The recommended approach is to make the Cancel Request button conditional by using a task-level parameter.
This allows visibility to be controlled per task without overriding the toolbar definition.
- Define a parameter on the task, for example:
- CanUserCancel
- Configure the root toolbar definition using the following visibility condition:
With this configuration:
- The Cancel Request button is shown or hidden based on the task parameter
- Behaviour can vary per task without additional overrides
- Future system package updates are less likely to introduce maintenance overhead
Alternative approach: override the toolbar
You can also hide the Cancel Request button by overriding the Web.Job.Properties.Toolbar parameter and removing the button definition.
This approach is not preferred because:
- System package updates may introduce new tasks that require the same override
- Overriding the toolbar across multiple tasks increases upgrade and maintenance effort
Where possible, use task-level visibility control to minimise customisation impact and simplify future upgrades.