I want to hide doc level activity present at the bottom of all docs. Like, Add a comment or who viewed it activity from certain user roles. Kindly guide me.
1 Like
This is an old question, do we have feature in v14?
I found the solution of hiding Comment Box here
hello looking for the solution can you share
Hello, Go to this link, solution is there.
/* Hide comment input */
/* Hide timeline for doctypes */
frappe.ui.form.on(‘Your_DocType_Name’, {
refresh(frm) {
if (!frm.is_new()) {
setTimeout(() => {
const wrapper = frm.page.wrapper;
// Hide comment input
wrapper.find(
'.timeline-actions, .timeline-comment-box, .comment-box'
).hide();
// Hide timeline activity entries
wrapper.find(
'.timeline-item, .timeline-items'
).hide();
}, 500);
}
}
});
@sadashiv03 @francis1 we can handle this from UI itself. Go to user doctype → Settings tab → Form Seeting section and uncheck Timeline checkbox
