In the view list of a doctype, I want to hide the filter function. Because I use js to set some default search and I don’t want users to delete it. Is there any way?
@LeTienIT write a client script applied to list :
frappe.listview_settings['Sales Invoice'] = {
onload: function(listview) {
frappe.after_ajax(() => {
$('.filter-selector').hide();
});
}
};
1 Like
This is amazing. Thank. I’m a newbie, so if possible, could you give me some documents to learn about erpnext? Current version:
ERPNext: v15.29.2 (version-15)
Frappe Framework: v15.33.3 (version-15)
Frappe HR: v16.0.0-dev (develop)
Hey friend. I have a new question. I use listview.filter_area.add() for default search settings. But the problem is I want to execute two conditions in the context of or. That means either condition 1 or condition 2. How do I do it?