---
title: How can I hide the Cancel request button in the Job web toolbar?
slug: how-can-i-hide-the-cancel-request-button-in-the-job-web-toolbar
docTags: 
createdAt: 2026-02-03T22:10:40.291Z
---

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.

1. Define a parameter on the task, for example:

- CanUserCancel

1. Configure the root toolbar definition using the following visibility condition:

:::BlockQuote
\<RibbonButton ID="btnCancel" Link="=/" StartPage="cancel" Text="Cancel Request" ImageUrl="cancel" Visible="=and(=//JScript/CanUserCancel,=isnull(=//Job/Task/CanUserCancel,true))" />
:::

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.
