How to Hide "ID" Column in List View in ERPNext Healthcare Module

Hi all,

I’m using ERPNext v15.67.0 with Healthcare module v15.1.3, and I’d like to know how to hide the “ID” column in a List View of Patient doctype.

Is there any built-in option or configuration in ERPNext/Frappe to hide the ID column from the List View?
Or do I need to customize the List View using a JS file or custom script to remove or hide it?

From system you can’t hide ID.

But if you have custom app you can do it.

To remove ID from list view you must have field set as title.

in list view you can add like this:

frappe.listview_settings['Patient'] = {
    hide_name_column: true, // hide the id column which shows the `name`
    hide_name_filter: true, // hide the default filter field for the name/id column
}