Hide Connection Document

Hi guys,

I have been trying to hide these links under Connections. Where can I edit these links?

try this in a custom script or add it directly to the doctype js file .

cur_frm.dashboard.hide()

2 Likes

Thanks.
That works, But I want to hide some connecting documents not the complete section

For that, I think you would have to go to dashboard settings and customize.

Hi, try below custom script

frappe.ui.form.on(‘DocType’, {
onload (frm) {
setTimeout(() => {
$(“[data-doctype=‘Connection1’]”).hide();
$(“[data-doctype=‘Connection2’]”).hide()
}, 10);
}
});

1 Like

Thanks for the reply.
Could you please tell me what is “data-doctype”, Is that the link data type that connects the connection document