Loading

Custom CSS Not Applied When OmniScript is Dynamically Loaded in LWC

Data pubblicazione: Mar 17, 2025
Descrizione

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

Risoluzione

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.

Numero articolo Knowledge

004518951

 
Caricamento
Salesforce Help | Article