Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Apply Custom Styling to Omniscripts with Static Resources (Managed Package)

          Apply Custom Styling to Omniscripts with Static Resources (Managed Package)

          For the managed package runtime, to apply CSS changes to an Omniscript using SLDS or Newport styling, refer to a CSS file static resource in the Styling Options section of the LWC Omniscript Designer. For example, a CSS sheet can change the text color for every Number element in an Omniscript without using a custom Lightning web component to override the Number element.

          Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

          Note
          Note

          Multi-Language Omniscripts provide beta support for right-to-left languages. See Create Multi-Language Omniscripts (Managed Package).

          1. After you create a custom style sheet, add the CSS file as a static resource.
            See Using Static Resources.

            For information about styling systems, see Light DOM, CSS, and Styling Hooks.

            For example, customstyle.css is uploaded as a static resource named customstyle.
          2. In the LWC Omniscript Designer, click Setup, and click Styling Options.
          3. In the Custom Lightning Stylesheet File Name or Custom Newport StyleSheet File Name field, enter the name of the Static Resource that stores your custom Lightning or Newport styling.
            An OmniScript's Styling Options section using custom stylesheets.
            For example, the static source customstyle refers to the uploaded customstyle.css file.
          4. If needed, to add custom styling for right-to-left languages, see Reference Stylesheet Names in an Omniscript's JSON (Managed Package).
          5. To view your custom styling, activate and preview the Omniscript.

            When you preview an Omniscript with a child Omniscript with a custom CSS, the content for the child Omniscript doesn't show the custom styling.

           
          Loading
          Salesforce Help | Article