Lets take a look how we can change default New Item button from SharePoint Calendar to something special -> we can simply hide it, disable it or replace it with two different buttons with custom URL inside it. In my example here I take last scenario. It works in SharePoint 2016 too.
So in my example I want to have two different new Item buttons because on SharePoint Calendar I have two different content types with different batch of fields:
- Preko razpisa: in a correlation with content type ID
0x0102002F433EA5305941B49ADAFE07A743868900126C566CEE7FCE48A0C51A4EE40CB2C9
- Izven razpisa: in a correlation with content type ID
0x0102005F244A3297F54F898B6BE2FFB5B11B0500E22EDFE8E3F74045AF07B08DED229B1E
All will be done in JavaScript code so we need to add reference to our custom JS file named PocitniskeKapacitete.js. Continue reading “Change default New Item button inside SharePoint Calendar”
