Want to hide Name Column from the List view

I want to hide this Name col from my custom Doctype using maybe custom_script

i tried below but didn’t worked
1)

frappe.listview_settings['Quality Update'] = {
    onload: function(listview) {
        // Hide the "name" column using jQuery
        $(document).ready(function() {
            $(".col-name").hide(); // Ensure to hide the correct class for the "name" column
        });
    }
};
frappe.listview_settings['Quality Update'] = {
	refresh: function(listview) {
	    $(".name").hide();
	}
};

anyone please help

frappe.listview_settings['Quality Update'] = {
   hide_name_column: true,
  
};
3 Likes

@Rajat96318 you don’t need any script brother


image

here you can add or remove the details

1 Like

this will not work because, “name” is the standard unique field for every table

Hi:

As far I know hide_name_column: true will only works when your doctype has a title field rather than your id(name field). Try to set as “title” other field, and you will see your ID as last column.

Hope this helps.

2 Likes

@avc ya I know