Hi,
I am trying to control the background color of a list element using an arcade expression. The $datapoint.division contains several string values e.g. Central Arizona. Ideally I would like this expression to execute based on the various division values and color code the background of each list element based on the string value of $datapoint.division.
Here is my expression. @DougBrowning , figured you can solve this in the blink of an eye.
var color = IIF($datapoint.division == "Central Arizona", '#F3DED7', '')
return {
textColor: '',
backgroundColor: color,
separatorColor:'',
selectionColor: '',
selectionTextColor: '',
// attributes: {
// attribute1: '',
// attribute2: ''
// }
}