Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Override all Elements of an Omniscript Element Type with a Custom Lightning Web Component

          Override all Elements of an Omniscript Element Type with a Custom Lightning Web Component

          To override all elements of a type in an Omniscript, map the element to the custom Lightning web component. You can't directly drag these components to the Omniscript canvas and map them to their custom Lightning web component. These components include Step Chart, Save for Later Acknowledge, and Modal.

          1. Create a custom LWC that extends the LWC and add the custom LWC to your Salesforce org. Here are the extendable components:
            • Step Chart: omniscriptStepChart
            • Save for Later: omniscriptSaveForLaterAcknowledge
            • Modal: omniscriptModal
          2. From the Omniscript Setup, scroll to the Element Type to the LWC Component Mapping property and add mappings.
            1. Enter the element type that you want to customize.
              The element types include:
              • Step Chart: StepChart
              • Modal: Modal
              • Save for Later: SaveForLaterAcknowledge
            2. In the Lightning Web Component field, select your custom Lightning web component for the element type.
            3. Click Add Mapping to map another element type.
            Omniscript element type customization
          3. From the Setup panel, click Edit Properties As JSON, and add this property: “useCustomLMS”: true.

            This property enables customized components to communicate with the Omniscript standard runtime components.

          4. To close the property editor, click Close JSON Editor.
          5. Activate the Omniscript.
          6. Click Preview.
           
          Loading
          Salesforce Help | Article