I need to disable new item creation (new document) and Connect to Outlook in a specific document library.
I would like to remove the button completely if possible, but will settle for disabling it by eliminating the "Create a new document" dropdown as well as the on-click function of the New button itself.
The code provided here does not perform these removals, no matter how I configure it using the "new document" or "new item" or "connect to outlook" menu item names in the function. All the others work fine but I cannot get these to go away.
Any help is appreciated!