For the managed package runtime, an Edit Block can dynamically display different SVG Icons for some records based on a Text element value.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
-
In the Edit Block's SVG Controlling Element property, enter
the name of a Text element in the Edit Block.
Note Dynamic SVG Icon display works only if the SVG Controlling Element is of type Text.
- In the Svg Controlling Element Map, click Add SVG Icon.
- In the Value property, enter a possible value for the SVG Controlling Element.
- Search for an SLDS icon, and note the category and icon name.
- In the Svg Sprite property, enter the icon's category.
- In the Svg Icon property, enter the icon's name.
- Preview the Omniscript and enter the value for the SVG Controlling Element to test the icon display.
- (Optional) Repeat the steps for additional SVG Controlling Element values.