Hide New Email button from the footer

Hi,

Is there a way to hide the ‘New Email’ button from the bottom of a record?

Remove the permission for Email from Role Permission Manager for the role on that doctype. That should remove the new email button.

Hey @kennethsequeira Thanks for the reply. I tried that,It’s only disables the functionality.The “New Email” button still appears in the screen.How to remove the button also?

Client Scripts → Select DocType → Past the following JS code.

document.getElementsByClassName("timeline-items timeline-actions")[0].style.display = "none";