Cancel component

In this article

Coveo for Salesforce 4.2 (April 2020)

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>