AnsweredAssumed Answered

Arcade Code IIF Statement for List Item showing Status Change

Question asked by deleted-user-sNUdtFrn2yEY on Jul 17, 2020
Latest reply on Jul 19, 2020 by deleted-user-sNUdtFrn2yEY

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',
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


+45 9955 6902