Remove unwanted options on the sidebar

Hello Guys

Is there any option to remove assign to, review, and tag from the sidebar, not whole the sidebar

Hi @jinsy,

Please apply it.

frappe.ui.form.on('Your_DocType', {
	refresh(frm) {
		$(".form-assignments").hide();
		$(".form-attachments").hide();
		$(".form-shared").hide();
		$(".form-tags").hide();
		$(".form-sidebar-stats").hide();
		$(".list-unstyled.sidebar-menu.text-muted").hide();
	}
});

Then reload and check it.

Thank You!

4 Likes

Thanks. @NCP .its working

how do i hide this from desk page?

Dear I want to hide sidebar to a user type: Employee Self Service, how can I hide?
Moreover is it possible to hide all doctype’s sidebars with a single client script?

frappe.ui.form.on('Employee', {
	refresh(frm) {
		$(".form-assignments").hide();
		$(".form-attachments").hide();
		$(".form-shared").hide();
		$(".form-tags").hide();
		$(".form-sidebar-stats").hide();
		$(".list-unstyled.sidebar-menu.text-muted").hide();
	}
});