Hello community. I want to add colors for the second zatca status field. how to manage this ?
Hi @bahaou ,
You can use the following code in client script. Also select Apply To= List.
frappe.listview_settings[‘DocType’] = {
formatters: {
status(val,field, doc) {
if(doc.status == ‘Reported’){
val = “” + val + “”;
}else if(doc.status == ‘Cleared’){
val = “” + val + “”;
}else{
val = “” + val + “”;
}
return val;
}
},
}
2 Likes