Hiding New Button in a specific Module

aniellacerna
Tera Contributor

How do you guys hide the new button in a selected Module can someone help me with this

 

2 REPLIES 2

Yashsvi
Kilo Sage

Hi @aniellacerna,

please try below script:

type - onLoad

(function() {
    // Hide the "New" button by manipulating the DOM
    var newButton = document.querySelector('button[title="New"]');
    if (newButton) {
        newButton.style.display = 'none';
    }
})();

Thank you, please make helpful if you accept the solution.