---
schema_version: "1"
id: 7be77c2c5d0d7be3cf8ae3b83948223f8275925c324ee0ce2db8650675289c3b
title: Configuring the Cancel Link in an Omniscript (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_configuring_the_cancel_link_in_an_omniscript.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_configuring_the_cancel_link_in_an_omniscript.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4da5835f29e6b1bdb32ffd8cfb8555e6fc2ca230f18a912e1e696bb25ee190a4
description: For the managed package runtime, the Cancel link appears on every Step in an Omniscript. From the Omniscript Designer, in the Cancel Options section of the Script Configuration, you can specify the behavior for when a user hits the Cancel link with the Cancel Type and Cancel Source.
products:
  - Omnistudio
release: "264"
---
# Configuring the Cancel Link in an Omniscript (Managed Package)

For the managed package runtime, the Cancel link appears on every Step in an Omniscript. From the Omniscript Designer, in the **Cancel Options** section of the Script Configuration, you can specify the behavior for when a user hits the Cancel link with the Cancel Type and Cancel Source.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

- Allow Cancel: Remove the Cancel button option from the Omniscript by clearing the **Allow Cancel** box.
- **Cancel Type**:
    
    - **SObject** redirects to an SFDC object. Enter the merge field of the record that you want to redirect to in Source. Default is %ContextId%.
    - **URL** redirects to a URL.
    - **Redirect** directs to an HTML template, specified in the Source
    - **Dismiss** closes the script and presents a blank page. This is the pre-Version 12 behavior of the Cancel link.
- **Cancel Source**:
    
    - If redirecting to an SObject, enter "%ContextId%" to redirect to the record that the script launched from.
    - If redirecting to a URL, enter the page and parameters. For example, "MyTestPage?Id=%ContextId%" would redirect to an internal page and "http://www.vlocity.com"; would redirect to an external page.
- If you selected Redirect as the Cancel Type, in the Cancel Redirect Page Name and Cancel Redirect Template Url, enter the page name and template that the Omniscript should redirect.