ERPNext Conference 2019* Blog

Remove left- side bar


Hai i need to remove left side bar(screen attached),is this possible?

Customize Desk GUI?


AFAIK it cannot be hidden using standard customization/configuration features.


Basically can be removed, but the result will be ugly



you can hide whole left side toolbar. Open Doctype at the bottom there is option Hide Toolbar , just check it and reload the form.


Hi @Sangram,

What is I want to hide specific components of the left side toolbar?

For example, I want to hide all components below “Shared With”.




There is no such provision to hide specific components for now.



Is there any option to hide the entire left sidebar?

If so, please let me know how to do it


In your doctype, there is one checkbox to hide toolbar



This side section can not hide
If you want to hide it you can use CSS
try to write this in desk.css

	display: none;

This is your result

To improve it add this style also in desk.css


This is your result


@ganesh Hi!

In .js file of your doctype:

frappe.ui.form.on("[Your Doctype]", {    
refresh: function(me) {; // this removes the sidebar".layout-main-section-wrapper").removeClass("col-md-10"); // this removes class "col-md-10" from content block, which sets width to 83%

P.S. But this is possible on self-hosted version


I’am trying to remove the timeline (comment section) along with the sidebar… i have tried this But no luck

 frappe.ui.form.on("Opportunity Pipeline", {    
 refresh: function(me) {; // this removes the sidebar".timeline").removeClass(".timeline");

Iam using this for hiding side bar if the user have specific role, but i also want to remove the comment section along with the sidebar

frappe.ui.form.on("Opportunity Pipeline", {  
 onload: function(me){;
      refresh: function(me){





Hi ,
i want to hide toolbar of custom doctype which is submittable for this i tick the option hide toolbr. But it throws following error
Cannot read property ‘comment_area’ of undefined



Check your doctype fields, whether you have added proper field types and options.