Good day. I need help changing the color of a doctype section or column label. Please assist

@Lastie_Jason_Pule check this maybe it helps you

2 Likes
frappe.ui.form.on("My Contract", {
  refresh(frm) {
    frm.get_field("my_section").wrapper.css("background-color", "#f00");
    frm.get_field("my_field").$wrapper.css("background-color", "#0f0");
    frm.get_field("my_field").label_area.style.backgroundColor = "#00f";
  }
});
1 Like

Thanks. I ended using a different method by creating an HTML field, then i changed the color of the text-label using inline css in the field options.




.

1 Like