Can we change the color of the section with the different colors?

Hi @Parth_Vashista,

Please check the syntax.

frappe.ui.form.on('DocType', {
    refresh: function(frm) {
        // select the first row in the child table
        var rows = document.getElementsByClassName("grid-row");
            for (var i = 0; i < rows.length; i++) {
              rows[i].style.backgroundColor = "cadetblue";
            }
    }
});

Note: Next time, Please create a new thread for new issue.

Thank You!

1 Like