Sidebar hiding without remove image field

Hai everyone, How to remove Sidebar without skipping the image field in Frappe.Please help me with this

Hi @AAnjusha,

Which sidebar?

Can you explain? and please, share the image of the sidebar.


i want to hide this sidebar without the image field

Hi @AAnjusha,

Please apply the client/custom script.

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, please.

Thank You!

3 Likes

it’s working Thank you!!