Loading

Custom CSS Not Applied When OmniScript is Dynamically Loaded in LWC

Date de publication: Mar 17, 2025
Description

When an OmniScript is dynamically loaded within an LWC, custom CSS which is added in the Omniscript, does not get applied as expected. However, if the OmniScript is added normally within the LWC, the styling works correctly.

Meaning of Dynamically Rendering the OmniScript:

Dynamically rendering the OmniScript refers to importing the OmniScript at runtime on perform of any action on LWC, after the custom LWC has fully loaded. 


 

 

Resources for Dynamically rendering Components in LWC :- Link

Résolution

The team has recommended avoiding the dynamic import method to include the OmniScript in the LWC. Instead, they suggest using the static method by referencing the snippet from the "How to Launch" section of OmniScript.

Numéro d’article de la base de connaissances

004518951

 
Chargement
Salesforce Help | Article