Cancel component (Deprecated)

In this article
Deprecated

This feature is still available, but no longer supported as of the April 2020 release of Coveo for Salesforce version 4.2.

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.

<div data-title='<MY_CUSTOM_TEXT>'></div>

Where you can replace <MY_CUSTOM_TEXT> 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.

<div data-redirect-url='<MY_REDIRECTION_URL>'></div>

Where you replace <MY_REDIRECTION_URL> 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.

$('#myCancel').coveo('cancel')

Usage

<div class="CoveoCancel"></div>