I’m trying to hide the ID (name) column in the Address DocType list view. I’m using the following client script to achieve this, but it’s not working as expected.
Here’s the code I’m using:
frappe.listview_settings[‘Address’] = {
hide_name_column: true // Attempting to hide the ID (name) column
};
It doesn’t seem to have any effect, and the ID column is still visible. Could anyone point out what mistake I might have made or suggest a solution to hide this column?
@NCP It’s not working as expected. In the list code, both the checkbox and the ID header are contained within the same div. The root class is level-item. If I hide the level-item, it hides both the input and the span tags. How can I hide only the ID?