How to hide Toggle sidebar

Screenshot from 2024-07-31 10-07-18

How can i hide the Toggle side bar .
Screenshot from 2024-07-31 10-22-00

Reference:

frappe.ui.form.on('Your_DocType', {
	refresh(frm) {
		$('button.btn-reset.sidebar-toggle-btn').hide();
	}
});
3 Likes

Thank you for your very fast response. You are the best! I appreciate your help :heart: :blush: :+1: