Display SVG Icons Dynamically (Managed Package)

For the managed package runtime, an Edit Block can dynamically display different SVG Icons for some records based on a Text element value.

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

  1. In the Edit Block's SVG Controlling Element property, enter the name of a Text element in the Edit Block.
    Note
    Note Dynamic SVG Icon display works only if the SVG Controlling Element is of type Text.
  2. In the Svg Controlling Element Map, click Add SVG Icon.
  3. In the Value property, enter a possible value for the SVG Controlling Element.
  4. Search for an SLDS icon, and note the category and icon name.
  5. In the Svg Sprite property, enter the icon's category.
  6. In the Svg Icon property, enter the icon's name.
  7. Preview the Omniscript and enter the value for the SVG Controlling Element to test the icon display.
  8. (Optional) Repeat the steps for additional SVG Controlling Element values.