Hello, this is my first attempt at trying to use Arcade in Operations Dashboard.
I want to change the List Item background color based on the Survey status. I'm having difficulty trying to get this Arcade code to work. See code sample and screen shots.
Code sample:
// Status of Survey entry
var color = IIF($datapoint.status == open, '#FFBEBE', '');
var color = IIF(datapoint.status == closed, '#D3FFBE','');
var color = IIF(datapoint.status == inprocess, '#BEE8FF','');
return {
textColor: '',
backgroundColor: 'color',
separatorColor:'',
selectionColor: '',
selectionTextColor: '',
// attributes: {
// attribute1: '',
// attribute2: ''
// }
}
Thanks in advance for any assistance you can provide me with. I'd like to try and change the Background color for Status - (open, closed and inprocess).
Best regards,
Colleen Madigan Schelde
Senior GIS Specialist
Radiuselnet
comas@radiuselnet.dk
+45 9955 6902