ERPNext Conference 2019* ERPNext.com Blog

Multiple indicators in listview


#1

Hi All

Is ist possible to set more than one indicator color in list view?

It works fine to define the color of the column “Status”, but can i also define a color for the column “Transaction Status”? (see pic below)

grafik

thanks for help!


#2

I was looking at the code and I didn’t find a way to do it with the classic JavaScript get_indicator. But maybe you can do something with a custom Workflow for that doctype.
Or if in your select you use one of this status, it will be setted automatically:

["Pending", "Review", "Medium", "Not Approved"] colour = "orange"
["Open", "Urgent", "High"] colour = "red"
["Closed", "Finished", "Converted", "Completed", "Confirmed", "Approved", "Yes", "Active", "Available", "Paid"] colour = "green"
["Submitted"] colour = "blue"