Hiding buttons from the drawer
Can you hide buttons from the drawer menu by using a .js file? For instance when selecting Drawermenu - New - Workitem - Inicident - QuickCreate, can the quick create be hidden via a .JS file? I know that there is an article that says updating the .css file can do it but was wondering if there is another method of hiding drawermenu items?
Answers
$('[data-click-template="incidentQuickAdd"]').hide()
Hello Justin
Is that command in the custom.js?
$(document).ready(function() {$('[data-click-template="incidentQuickAdd"]').hide()})
Thanx for the update Justin. This is strange one for our setup. A while back we hid the Quick create and Change Request options. Last year about August time we had SCSM 2016 installed on new servers and migrated the work items and custom.js amongst other files. I have checked our .css files and the custom.js but cannot see the settings to hide the Quick create and Change Request items via the DrawerMenu New work items.
Thanx very much for that. For some reason I did check Admin settings and saw that we had false for Quickcreate. Not sure why I did not check that first. Sorry. Also the Create Change request I needed the CacheBuilder to run first for that one to show.
Thanx for all your help