Adjusting the Column width in List view


Hi All,

1.Is there any possible to adjust the width of the Columns in List View of doctype??
2.is that Possible to change the column name ID to Invoice Number in list view??

Hello @Pradeep_Manoharan

To achieve this, you need to create a JS file for your Doctype list view override. Please check this; I hope it works for you.

1 Like

Thanks for your support @Manav_Mandli.is there any possible to change the column name of ID in list view??

frappe.listview_settings['Your DocType'] = {
    onload: function(listview) {
        $(".list-row-col span:contains('ID')").each(function() {
            $(this).text("Custom Name"); # Replace with the name you want to show in label instead of ID
        });
    }
};