Someone knows how to hide a column for a doctype in list view? [from code]

Anyone knows a way to hide a column for a doctype table?

I could to hide fields in form view, but I don’t know how to hide fields (columns) in list view.

Thanks for the help…

You can go to menu->customize. Select the field which you dont want to be shown in list view. You need to uncheck the checkbox “In List View”. The column will be shown.

Hi @kothagunda

I forgot to say I want to hide from code and not from UI. :smiley:

Thanks in advanced

cur_frm.toggle_display('field_name',false);