---
schema_version: "1"
id: 38aa33c375abb27636dbc8a89d470bd90f2d712d0608b0e40afeee5267ae4cf3
title: Add a Standalone Custom LWC (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_add_a_standalone_custom_lwc.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_a_standalone_custom_lwc.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 00bbd859ec4716d47a89c549d0b5cf6ef611df99b14c531c0ec4419c2da3471b
description: "For the managed package runtime, to add a standalone custom Lightning web component to an Omniscript:"
products:
  - Omnistudio
release: "264"
---
# Add a Standalone Custom LWC (Managed Package)

For the managed package runtime, to add a standalone custom Lightning web component to an Omniscript:

![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).

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)

Note

Standalone custom Lightning web components cannot extend any Omniscript element component or the OmniScriptBaseMixin component. The standalone component supports custom functionalities but cannot interact with an Omniscript. For more information on the standalone components, see [Create a Standalone Custom Lightning Web Component (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_standalone_custom_lightning_web_component.htm&release=264.0.0&type=5 "For the managed package runtime, enable custom Lightning web components to act independently from an Omniscript by adding it to the Omniscript as a standalone component.").

1. Drag a **Custom LWC element** from Inputs into the canvas.
2. In the **Lightning Web Component Name** field, enter the name of a Lightning web component.
3. Select the **Standalone** checkbox.
4. Save and Activate the Omniscript.
5. Click **Preview** to preview the Omniscript.

What’s next:

- If the Standalone checkbox is deselected, changes to the data in an embedded Flexcard are cached when the user navigates away from the Flexcard. The changes are not applied to the data source.
- For this reason, if you call an Update Data Source action in a Flexcard embedded in an Omniscript with Standalone deselected, then the action overrides any changes by the user.