--- title: Cancel component (Deprecated) slug: '1266' canonical_url: https://docs.coveo.com/en/1266/ collection: coveo-for-salesforce source_format: adoc --- # Cancel component (Deprecated) > **Deprecated** > > This feature is still available, but no longer supported as of the April 2020 release of Coveo for Salesforce version [4.2](https://docs.coveo.com/en/3236#april-2020-release-v4-2-initial-release). This component adds a button to cancel the case creation. ## Options ### `title` Specifies the text to display on the button. The default value is `Cancel`. ```xml
``` Where you can replace `` by the text to display on the button. ### `redirectUrl` Specifies where to redirect the user once the case has been canceled. This option is empty by default. ```html
``` Where you replace `` by the link for which users should be redirected. ## Methods ### `cancel` Cancels the case creation and redirects the user using the `redirectUrl` option. If `redirectUrl` is empty, it clears the form instead. ```javascript $('#myCancel').coveo('cancel') ``` ## Usage ```xml
```