Hi, I want to hide Name and Status from list view of my custom doctype. How can I achieve this?
Hey, Thanks for the reply. But Name is a auto-generated field and you cannot see it in the docfields list.
I was able to hide name field using Title field but I still need help to hide the status from the list view.
Hello @Darpan_Agarwal,
Even I want to hide the status from the list view of Custom Doctype. Did you find a solution?
Thanks & Regards,
Sujay
You can change the label or assignment of status by creating a js file with name your-doctype-name_list.js
and put it inside the doctype directory.
The code:
frappe.listview_settings['Your Doctype Name'] = {
get_indicator:function(doc){
if (doc.status === "Status A") {
return [__("Status A"), "green"];
},
{
# add more status here withthe same structure as above.
},
hide_name_column: true
}
So maybe (never tried this myself) if you create an empty js list file it will not display the status.
The last line hide_name_column: true
is to hide the naming column (the last column).
5 Likes
how ? man pls help