Hide Name Filter

Hello Guys

Is there an option to remove the name from the standard filter in the list view?

Thanks

Hi @jinsy,

Please apply client/custom script in listview.

frappe.listview_settings['Opportunity'] = {
	refresh: function(listview) {
	   	$("div[data-fieldname = name]").hide();
	}
};

Reload and check it.

Thank You!

2 Likes

Thanks @NCP

How do hide the name from the list and filter both together in list view Please

Hi @CA_B.C_Chechani,

Please apply it.

frappe.listview_settings['Your_DocType'] = {
    refresh: function(listview) {
       // Hide name filter from Listview
        $("div[data-fieldname = name]").hide();
    },
    // Hide name from Listview
	 hide_name_column: true
};

Reload and check it, please.

Thank You!

2 Likes

I tried that repeatedly, but the Name column does not hide!

Hi @CA_B.C_Chechani,

Which doctype?

because it’s working on my side version 13 in Lead DocType.

Thanks.

It’s not working v14 even on lead doctype, previously I tried with custom doc

I was able to get this working, both standard and custom DocTypes. (thank you, @NCP :+1: ).

@CA_B.C_Chechani, here is a screenshot of the changes I made to Customer DocType.

I am on version 13.8.

It’s not working in the v14 beta, I’ve seen it working in v13 in the past but it probably stops working, surprising! There may be an alternative to do this in V14 @NCP

1 Like

Hi @CA_B.C_Chechani,

Maybe, sometimes does not work but I have not faced issues.

  1. Version 13


  2. Develop branch


Thank You!