Hi,
This can be done with some Custom JS. Add a header with an unique id – in my example I added a header with Unique ID “headerOverStatus” over my Status field.
Change the header ID and the fieldinternalname to match your field – and change the colors. Then add this snippet to your Custom JS:
// Trigger it on page load
setHeaderColorByStatus();
// Trigger on change of the status field
jQuery("#dffs_Status").on("change",function(){
setHeaderColorByStatus();
});
function setHeaderColorByStatus(){
var currentStatus = getFieldValue("Status"), bgc = "white", c = "black";
switch(currentStatus){
case "Not started":
bgc = "yellow";
break;
case "In progress":
bgc = "blue";
c = "white";
break;
case "Completed":
bgc = "green";
c = "white";
break;
}
jQuery("#dffsHeading_headerOverStatus div").css({
"background-color":bgc,
"color":c
});
}
Alexander