You are here:
Customize Omniscript Elements
Add custom behavior and styling to an Omniscript element by extending the functionality of an Omniscript element. By extending the Omniscript component, you modify its properties and add new properties. Then, replace or override the Omniscript element's Lightning web component with the customized component in the designer to use the customized component at run time.
Download the extendable Omniscript components from Salesforce, customize them, and deploy them to your org. After deployment, you can override an element with the custom component in the Omniscript.
Extend and Override an Omniscript Element’s Lightning Web Component
A Lightning web component provides the HTML, JavaScript, XML, and CSS files for an Omniscript element. Modify these files to add custom behavior and styling to a Lightning web component. For example, a Text element has a custom component named omniscriptText. Customize the Omniscript element's functionality and styling by extending the custom component. Then, override the Omniscript’s element with the custom Lightning web component in the Omniscript designer.
The custom Lightning web component must extend the element's property because Omniscript passes in properties specific to the original element that the custom element is overriding.
To override individual elements in an Omniscript, add the custom component by using LWC Component Override in the element property.
To override all Omniscript elements of a type, map the element to the custom component in Setup. Use mapping for the Step Chart, Save for Later Acknowledge, and Modal elements.
- Customizable and Uncustomizable Omniscript Elements
You can extend most, but not all, Omniscript components. - Set Up Your Environment to Customize Omniscript Elements
Set up your developer environment by downloading the Omniscript elements that you want to customize and by deploying these elements in a Salesforce org. - Extend an Omniscript Element’s Lightning Web Component
Add custom behavior and styling to an Omniscript element while maintaining its core functionality. Replace an Omniscript element's Lightning web component with a component that re-creates its properties and adds new ones.

