I would like to display a different icon depending on a value (it would come from a query, but I am using a select list to test).
I can do this with three different icons, and hiding depending on value selected, but thought having one icon dynamically displaying different icons would be a better solution.
I've created this JavaScript, but it doesn't work.
{{ if ({{select1.value =="Present"}}) {
"/icon:bold/shopping-gift"
} else if ({{select1.value =="Fire"}}) {
"/icon:bold/interface-content-fire-alternate"
} else {
"/icon:bold/mail-chat-bubble-oval-question-alternate"
}
}}