How to hide the print option in side bar menu

consider stock user role remove the print permission

Now try to login that user

1 Like

but here i want to hide the Print option under a certain condition .is this possible to do?

Can you please share one of the use case or condition?

you can hide like this based on your condition

const element = document.querySelector(“[data-label=‘Print’]”);
if (element) {
// add a class :
element.classList.add(‘print-btn’);
}

element.style.display = ‘none’;