How can i hide the Toggle side bar .
Reference:
frappe.ui.form.on('Your_DocType', { refresh(frm) { $('button.btn-reset.sidebar-toggle-btn').hide(); } });
Thank you for your very fast response. You are the best! I appreciate your help