---
schema_version: "1"
id: 5cc1349d988faede95f5bf91edab3672aa6939ac32b79fc8692389f18fb4ba07
title: Preview an Omniscript in the LWC Omniscript Designer (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_preview_an_omniscript_in_the_lwc_omniscript_designer.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_preview_an_omniscript_in_the_lwc_omniscript_designer.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9aa0fb648b8858173d87b20a1e6cd4c0436ea9b7e831c59e208e38de14ca2089
description: For the managed package runtime, view the LWC Omniscript's appearance and functionality by previewing the Omniscript in the LWC Omniscript designer.
products:
  - Omnistudio
release: "264"
---
# Preview an Omniscript in the LWC Omniscript Designer (Managed Package)

For the managed package runtime, view the LWC Omniscript's appearance and functionality by previewing the Omniscript in the LWC Omniscript designer.

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

Before you begin

- Create an Omniscript. See [Create an LWC Omniscript in the LWC Omniscript Designer (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_an_lwc_omniscript_in_the_lwc_omniscript_designer.htm&release=264.0.0&type=5 "For the managed package runtime, create an LWC Omniscript to build a script in the LWC Omniscript Designer.").
- Set up your Omniscript with optional settings. See [Set Up an Omniscript in the LWC Omniscript Designer (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_set_up_an_omniscript_in_the_lwc_omniscript_designer.htm&release=264.0.0&type=5 "For the managed package runtime, configure optional settings for your Omniscript in the Setup panel of the LWC Omniscript Designer, such as making your Omniscript reusable or enabling tracking.").
- Add elements to your Omniscript. [Build an LWC Omniscript with Elements in the LWC Omniscript Designer (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_build_an_lwc_omniscript_with_elements_in_the_lwc_omniscript_designer.htm&release=264.0.0&type=5 "For the managed package runtime, drag elements and entire Omniscripts from the Build panel onto the canvas to build your scripts in the Omniscript Designer.").
- Configure your Omniscript elements. See [Configure Elements in the LWC Omniscript Designer (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_configure_elements_in_the_lwc_omniscript_designer.htm&release=264.0.0&type=5 "For the managed package runtime, configure elements for your Omniscript in the Properties panel of the designer when an element is selected, such as the name, label, and instructions for a step element.")

1. In your Omniscript, click **Preview**.
2. For additional preview options, select these properties: <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <tbody><tr class="">
            <th style="vertical-align:top;" headers="d99149e115-option" id="d99149e119">Context ID</th>

            <td style="vertical-align:top;" headers="d99149e115-desc d99149e119">
              <p>If your Omniscript does not have a Set Values Action that defines a
                ContextId, to preview the form with test data, enter a record
                ID.</p>
              <p>Using Set Values Action to set the context ID only works in
                preview.</p>
              <p>Confirm that a Context Id is defined in your data source. For
                example, if you have an Omnistudio Data Mapper Extract Action that gets account records,
                you must have an Input Parameter whose <strong class="uicontrol">Data Source</strong> is
                <kbd>ContextId</kbd>, and whose <strong class="uicontrol">Filter
                  Value</strong> is the Data Mapper Extract's output name, such as
                <kbd>AccountId</kbd>.
              </p>
            </td>

          </tr>
          <tr class="">
            <th style="vertical-align:top;" headers="d99149e115-option" id="d99149e149">Preview Device</th>

            <td style="vertical-align:top;" headers="d99149e115-desc d99149e149">
              <p>To preview how your Omniscript appears on different devices, select
                <kbd>Mobile</kbd>, <kbd>Tablet</kbd>, or
                <kbd>Desktop</kbd>.
              </p>
            </td>

          </tr>
          <tr class="">
            <th style="vertical-align:top;" headers="d99149e115-option" id="d99149e170">Theme</th>

            <td style="vertical-align:top;" headers="d99149e115-desc d99149e170">Preview your Omniscript with a Lightning or Newport theme.</td>

          </tr>
          <tr class="">
            <th style="vertical-align:top;" headers="d99149e115-option" id="d99149e179">Reset data fields</th>

            <td style="vertical-align:top;" headers="d99149e115-desc d99149e179">To reset data fields in your Omniscript after making changes, click the
              reload icon. <div><img style="width:400px;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/os_designer_preview_refresh.png" alt="image"></div>
            </td>

          </tr>
        </tbody></table>
3. (Optional) Hide the Data JSON and Action Debugger by clicking **X**. Display the Data JSON and Action again by clicking the debug panel button that appears when the panel closes.
    
    ![The column button that displays the debug panel after it has been closed.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/display_debug_panel.png)

If you see the error "Omniscript is either inactive or has not been deployed," the Omniscript is too large. The Lightning web component for an Omniscript can't be larger than 4 MB because of a [payload data limit](https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_actions_call.htm) with Aura components. Download the Omniscript LWC to check its size.