List view Hidden Field

Hello Guys

I want to hide some fields in the list view. Please help me with this

I want to hide the time and message symbol .

Also,

I want to edit the name of fields in the list view. In the lead list view, I want to hide the title field.
For that, I update view settings in customization and add the lead name instead of the title, but after that, it displays 2 fields with the same
data.

Is there any option to hide title fields and edit fields?

Please help me with this.

1 Like

Hi @jinsy,

Please apply in the listview client/custom script.

frappe.listview_settings['Lead'] = {
	refresh: function(listview) {
	    $(".comment-count").hide();
	    $(".frappe-timestamp").hide();
	    $(".avatar-small").hide();
	}
};

image

Reload and check it.

Thank You!

1 Like

Hi @NCP

Thanks for the reply but it does not work for me.
This is my code

 refresh: function(listview) {
    $(".status").hide();
   // $(".frappe-timestamp").hide();
   // $(".avatar-small").hide();
}

Thanks

Hi @NCP
is there any rename option in the list view?

No.

It works on my side.
V13

Thanks.

2 Likes

Sorry @NCP

It works.

Having read some of Nihantra Patel’s posts in the past 5 minutes, I’ve seen tricks for hiding web page elements that haven’t been documented anywhere else in 5 years.

I’ve give some of his replies 100 likes, if I could.

3 Likes

@jinsy You can use the feature from ‘Customize form’ itself in order to solve your query.
Refer to below screen shot-

@murtaza_bk What you’re showing works in most cases.

However, without custom code, there is no way you can Show or Hide these:

  • name
  • creation and modified
  • modified_by and owner
  • docstatus
  • parent, parentfield, and parenttype
  • idx
  • The multi-select check box.
  • The heart-shaped icon for Likes.
  • If you create a DocField named 'enabled' that is a Check, it will appear on the grid automatically (whether you want it to or not!)
    • The list grid also gives this a column name of “Status”. This has confused both myself and a few customers.
  • The text that shows the last modified in Minutes/Hours/Days (e.g. 44 m)
  • The little icon that shows whether there are Comments.

It’s the last 2 that jinsy was asking about.

3 Likes

@brian_pond - Great!
This list helps people to find a way in order to show/hide fields through which method(custom script or customize form). Good job.