Switch case even on onLoad ... need help.

I have this on the onLoad event, but yet it’s not working. I’m sure it’s because I’m new :slight_smile: Can anyone give me a hand?

switch({status}){
case “Bug”:
sc_field_style({status}, “#CC4247”);
break;

case "Feature Request":
sc_field_style({status}, "#E4F4FA");
break;

case "Closed":
sc_field_style({status}, "#F4DADA");
break;

}

At first sight there is nothing wrong. Are you sure that status contains the correct wording (case sensitive?). Personally I would use only the first letter to check. But besides. If you just set a sc_field_style, w.o. a condition, does that work? I don’t have the syntax at hand.