You are here:
Restore Color for Read-Only Multi-Select Element Images (Managed Package)
For the managed package runtime, read-only Multi-Select element images render in grayscale. To restore color for these images, create a .css file, save it as a static resource, then reference it in the Custom Lightning Stylesheet File Name property in Omniscript Setup.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
-
Create a ReadOnlyRestoreColor.css file with this code:
.omni-read-only [data-omni-input] .slds-img-item_select-container, .omni-read-only [data-omni-input] input[type=checkbox], .omni-read-only [data-omni-input] input[type=radio], .omni-read-only [data-omni-input] input[type=range] { filter: brightness(1.25) grayscale(0) !important; } - From Setup, in the Quick Find box, enter static, then click Static Resources.
- Click New.
- In Name, enter ReadOnlyRestoreColor.
- Click Browse, then select the ReadOnlyRestoreColor.css file.
- Save your changes.
- From the App Launcher, find and select Omnistudio, then click Omniscripts.
-
In the list of Omniscripts, Find and expand your Omniscript, then click the
version.
The Omniscript opens in the Omniscript Designer.
- In the Omniscript Designer, click Setup.
- Expand Styling Options.
- In Custom Lightning Stylesheet File Name, enter ReadOnlyRestoreColor.

