Hi everyone,
I'm working on a dashboard where I need to display in a list different SVG icons depending on the value of a field. For example:
- If the field thema = "Energie," I want to display Icon1.svg.
- If thema = "Water," then display Icon2.svg, and so on.
I have 8 different themes in total, each requiring its own icon.
I’ve tried using Arcade to add the SVG code directly into a variable, but it didn’t work as expected. I was considering storing the SVG code in a field, but I’m unsure of the best approach to dynamically change the icon displayed in the list widget based on the field value.
Has anyone successfully implemented this? Any tips or example code would be really appreciated!
Thanks in advance!