Please, I would like to know how to hide the filter button as in the picture ؟

Client Script

  • Doctype: Select the applicable doctype (e.g. Stock Entry)
  • Apply to: List

Script:

frappe.listview_settings['Stock Entry'] = {
    onload: function(listview) {
        frappe.after_ajax(() => {
            $('.filter-selector').hide();
        });
    }
};

Output

---------------------------------------------------------------------------------
But it will create problem if we also remove ‘Clear all filter’ button.

Replace
$(‘.filter-selector’).hide() → $(‘.filter-button’).hide()

Output

1 Like

thank you so much !

thank you so much !