Loading

Custom CSS Not Applied When OmniScript is Dynamically Loaded in LWC

Udgivelsesdato: Mar 17, 2025
Beskrivelse

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

Løsning

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.

Vidensartikelnummer

004518951

 
Indlæser
Salesforce Help | Article