Loading

Custom CSS Not Applied When OmniScript is Dynamically Loaded in LWC

Дата публикации: Mar 17, 2025
Описание

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

Решение

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.

Номер статьи базы знаний

004518951

 
Загрузка
Salesforce Help | Article