For the managed package runtime, after you create a custom Lightning web component for an Omniscript, apply the component’s new behavior by adding it to an Omniscript.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Use the custom component to override an individual Omniscript element’s component, override all Omniscript element components of one element type, or add an entirely custom component that doesn’t extend an element’s component.
|
Mapping Option |
Description |
|---|---|
|
Override an individual element's LWC. |
|
|
Override the LWC for every element of a specific element type—for example, override the element Types Text or Currency. |
|
|
Add custom LWCs that don’t extend an existing Omniscript element using the Custom LWC element. |
Before previewing an Omniscript that uses custom Lightning web components, you must activate the Omniscript. If the Omniscript isn’t active, custom Lightning web components don’t render in Preview. If you deploy changes to a custom Lightning web component embedded in an active Omniscript, the Omniscript displays the changes.
- Override an Element's Lightning Web Component (Managed Package)
For the managed package runtime, override an element's component using the element's LWC Component Override. The custom LWC must extend the element's component because Omniscript passes in properties specific to the original component that the custom component is overriding. - Map an Element Type to a Custom Lightning Web Component (Managed Package)
For the managed package runtime, override all elements of one type with a custom Lightning web component by mapping the element type to the Custom LWC. The custom Lightning web component must extend the element type's Lighting web component. For example, to override all of the Text elements in the Omniscript, the custom component must extend the OmniScriptText component. - Add a Custom Lightning Web Component to a Custom LWC Element (Managed Package)
For the managed package runtime, add custom Lightning web components that don’t extend an Omniscript element's component by using the Custom LWC element.