SOLVED

Calendar Overlay not possible in Sharepoint Online?

%3CLINGO-SUB%20id%3D%22lingo-sub-1010018%22%20slang%3D%22en-US%22%3ECalendar%20Overlay%20not%20possible%20in%20Sharepoint%20Online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1010018%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20creating%20calendar%20views%20from%20a%20list.%20The%20list%20contains%20multiple%20date%20columns%20such%20as%20due%20date%2C%20notification%20date%2C%20start%20date%2C%20and%20end%20date.%20I%20want%20each%20of%20these%20to%20be%20represented%20as%20distinct%2C%20one-day%20events%20on%20the%20calendar%20so%20for%20Time%20Interval%20I%20am%20using%20the%20same%20column%20for%20both%20the%20Begin%20and%20End%20columns.%20I've%20read%20about%20Calendar%20Overlays%20but%20the%20articles%20only%20mention%20other%20versions%20of%20Sharepoint%20besides%20Sharepoint%20Online.%20I've%20created%20two%20calendar%20views%20so%20far%20and%20I%20do%20not%20see%20anything%20about%20Overlay%20in%20the%20Calendar%20menu.%20I'm%20guessing%20this%20is%20yet%20another%20feature%20that%20was%20available%20in%20prior%20versions%20of%20Sharepoint%20but%20not%20yet%20available%20in%20Sharepoint%20Online.%20If%20so%2C%20has%20there%20been%20any%20discussion%20about%20when%20it%20might%20be%20available%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1010018%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1010139%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Overlay%20not%20possible%20in%20Sharepoint%20Online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1010139%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F419074%22%20target%3D%22_blank%22%3E%400123456789%3C%2FA%3E%26nbsp%3BYou%20are%20halfway%20there%2C%20if%20I%20understand%20what%20you%20are%20trying.%20You've%20got%20your%20individual%20calendar%20views%20on%20your%20list%2C%20that's%20the%20first%20step.%3C%2FP%3E%3CP%3EOverlays%20can%20only%20be%20done%20on%20a%20calendar%20list%2C%26nbsp%3B%20not%20on%20a%20generic%20list%20that%20happens%20to%20have%20some%20calendar%20views.%3C%2FP%3E%3CP%3EGo%20to%20site%20contents%20and%20create%20a%20calendar%20list%2C%20or%26nbsp%3B%20use%20the%20Event%20list%20if%20one%20has%20already%20been%20created.%20It's%20basically%20a%20calendar%20list%20with%20a%20modern%20front%20end.%20On%20that%20calendar%20view%20you'll%20see%20the%20'calendar%20overlay'%20button%20there.%20You%20should%20be%20able%20to%20add%20your%20other%20list%20views%20to%20this%20to%20get%20your%20color%20coding.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1010247%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Overlay%20not%20possible%20in%20Sharepoint%20Online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1010247%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F189854%22%20target%3D%22_blank%22%3E%40Robin%20Nilsson%3C%2FA%3E%26nbsp%3BI%20think%20I%20fall%20into%20the%20%22cannot%20be%20done%22%20category%20because%20I'm%20creating%20calendar%20views%20of%20an%20existing%20list%2C%20not%20a%20dedicated%20calendar%20list.%26nbsp%3B%20The%20list%20has%20a%20lot%20of%20columns%20(project%20name%2C%20website%2C%20description%2C%20contact%20name%2C%20contact%20email%20address%2C%20application%20date%2C%20notification%20date%2C%20project%20start%20date%2C%20project%20end%20date%2C%20etc).%20I%20then%20went%20to%20List%20Settings%20-%26gt%3B%20Create%20View%20-%26gt%3B%20Calendar%20and%20then%20used%20one%20of%20the%20date%20columns%20for%20both%20Time%20Interval%20columns.%26nbsp%3B%20I%20repeated%20that%20for%20each%20of%20the%20date%20columns.%20So%20sounds%20like%20I%20may%20be%20out%20of%20luck.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1010255%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Overlay%20not%20possible%20in%20Sharepoint%20Online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1010255%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F419074%22%20target%3D%22_blank%22%3E%400123456789%3C%2FA%3E%26nbsp%3BOh%20wait.%20I%20might%20have%20misunderstood%20you.%20I%20found%20another%20article%20and%20it%20seems%20to%20be%20doing%20what%20I%20want.%20Thanks%20for%20your%20help!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsharepointmaven.com%2Froll-calendars-sharepoint%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepointmaven.com%2Froll-calendars-sharepoint%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1011310%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Overlay%20not%20possible%20in%20Sharepoint%20Online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1011310%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F189854%22%20target%3D%22_blank%22%3E%40Robin%20Nilsson%3C%2FA%3E%26nbsp%3BHi%20Robin.%20I'm%20hoping%20you%20might%20be%20able%20to%20help%20me%20with%20one%20other%20calendar-related%20issue.%20In%20the%20month%20view%2C%20there%20is%20a%20timestamp%20above%20the%20title.%20I%20don't%20include%20the%20time%20in%20any%20of%20my%20date%20columns%20so%20they%20all%20say%2012%3A00%20a.m%20-%2012%3A00%20a.m.%26nbsp%3B%20I've%20attached%20a%20screenshot%20if%20it%20helps%20to%20understand%20the%20situation.%20Anyway%2C%20any%20idea%20how%20I%20can%20get%20rid%20of%20the%20time%3F%20I%20don't%20see%20it%20listed%20as%20an%20option.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1012503%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Overlay%20not%20possible%20in%20Sharepoint%20Online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1012503%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F419074%22%20target%3D%22_blank%22%3E%400123456789%3C%2FA%3E%26nbsp%3BThat%20one%20is%20more%20difficult.%20I've%20only%20used%20it%20on%20classic%20view%20on%20SP2013%20on%20premise%2C%20so%20not%20sure%20it%20will%20work%20with%20SharePoint%20online.%20The%20calendar%20entries%20are%20async%20so%20it's%20more%20difficult%20to%20code%20for.%20To%20the%20calendar%20page%20I%20added%20a%20script%20editor%20and%20included%20this.%20It%20removes%20the%20time%20AND%20it%20expands%20the%20calendar%20to%20show%20everything%2C%20not%20just%20the%20first%203%20events.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3E%3CSCRIPT%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2FJavascript%2FJQuery%2FJQueryMin-1.11.1.js%22%3E%3C%2FSCRIPT%3E%0A%3CSCRIPT%20type%3D%22text%2Fjavascript%22%3E%0A%2F%2F%20this%20version%20works%20faster%2C%20but%20there's%20a%20memory%20leak%20-%20the%20IE%20memory%0A%2F%2F%20keeps%20growing.%20Change%20it%20from%20100%20to%201000%0A%2F%2F%20and%20if%20you%20get%20to%20a%20month%20that%20has%20no%20items%2C%20it%20turns%20off%20the%20expand.%0A%2F%2F%20remove%20the%20expandCheck.%0A%2F%2F%20this%20works%20in%20Chrome%0Avar%20%24si%3B%0Avar%20%24sii%3B%0A%0A_spBodyOnLoadFunctionNames.push(%22ready%22)%3B%0A%0Afunction%20ready()%0A%7B%0A%20ExecuteOrDelayUntilScriptLoaded(init%2C%20%22sp.ui.applicationpages.calendar.js%22)%3B%0A%7D%0A%0Afunction%20init()%0A%7B%0A%20%24si%20%3D%20setInterval(expandAll%2C%201000)%3B%0A%2F%2F%20%24sii%20%3D%20setInterval(expandCheck%2C%202000)%3B%0A%7D%0A%0Afunction%20expandAll()%20%0A%7B%0A%20var%20%24a%20%3D%20%24(%22a.ms-cal-nav%22)%3B%0A%20if(%24a.html()%20!%3D%20null)%0A%20%7B%0A%20%20%24a.each(function(i)%7B%0A%20%20%20%0A%20%20%20%20%20%20if(%24(this).text().indexOf(%22more%22)%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bgt%3B-1)%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%24(this).find('img').trigger(%22click%22)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%7D)%3B%0A%20%7D%0A%20%20%20%24('div.ms-acal-ctrlitem').hide()%3B%0A%20%20%24('div.ms-acal-time').hide()%3B%0A%0A%20%24a%20%3D%20''%3B%0A%20%0A%7D%0A%0Afunction%20expandCheck()%0A%7B%0A%20var%20flag%20%3D%20true%3B%0A%20var%20%24a%20%3D%20%24(%22a.ms-cal-nav%22)%3B%0A%20if(%24a.html()%20!%3D%20null)%0A%20%7B%0A%20%20var%20len%20%3D%20%24a.length%3B%0A%20%20for(var%20i%3D0%3B%20i%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Blt%3Blen%3B%20i%2B%2B)%0A%20%20%7B%0A%20%20%20if(%24a.eq(i).text().indexOf(%22more%22)%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bgt%3B-1)%0A%20%20%20%7B%0A%20%20%20%20%20flag%20%3D%20false%3B%0A%20%20%20%7D%0A%20%20%7D%0A%20%20if(flag)%0A%20%20%7B%0A%20%20%20clearInterval(%24si)%3B%0A%20%20%20clearInterval(%24sii)%3B%0A%20%20%7D%0A%20%7D%20%20%20%0A%7D%0A%3C%2FSCRIPT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CDIV%20class%3D%22ms-belltown-authenticated%22%3E%3CDIV%3E%3CDIV%3E%3CDIV%20class%3D%22ms-table%22%3E%3CDIV%20class%3D%22ms-tableRow%22%3E%3CDIV%20class%3D%22ms-tableCell%22%3E%3CDIV%20class%3D%22contentwrapper%22%3E%3CDIV%20class%3D%22ms-table%20ms-fullWidth%22%3E%3CDIV%20class%3D%22ms-tableRow%22%3E%3CDIV%20class%3D%22ms-pub-contentLayout%20ms-verticalAlignTop%22%3E%3CDIV%3E%3CDIV%3E%3CDIV%20class%3D%22ms-wikicontent%20ms-rtestate-field%22%3E%3CDIV%20class%3D%22ExternalClass8DA921B7A3DF4665A3A97592C4159B21%22%3EThat%20one%20worked%20for%20me%2C%20but%20it's%20depending%20on%20SP2013%20page%20structure%20of%20the%20calendar.%20Maybe%20it%20will%20give%20you%20some%20ideas%20-%20I'm%20doubting%20it%20will%20work%20in%20SPO%20but%20ya%20never%20know!.%20I%20think%20this%20script%20came%20from%20Marc%20Anderson%205-6%20years%20ago....%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1015485%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Overlay%20not%20possible%20in%20Sharepoint%20Online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1015485%22%20slang%3D%22en-US%22%3EThank%20you!%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I'm creating calendar views from a list. The list contains multiple date columns such as due date, notification date, start date, and end date. I want each of these to be represented as distinct, one-day events on the calendar so for Time Interval I am using the same column for both the Begin and End columns. I've read about Calendar Overlays but the articles only mention other versions of Sharepoint besides Sharepoint Online. I've created two calendar views so far and I do not see anything about Overlay in the Calendar menu. I'm guessing this is yet another feature that was available in prior versions of Sharepoint but not yet available in Sharepoint Online. If so, has there been any discussion about when it might be available?  

6 Replies
Highlighted
Best Response confirmed by 0123456789 (Contributor)
Solution

@0123456789 You are halfway there, if I understand what you are trying. You've got your individual calendar views on your list, that's the first step.

Overlays can only be done on a calendar list,  not on a generic list that happens to have some calendar views.

Go to site contents and create a calendar list, or  use the Event list if one has already been created. It's basically a calendar list with a modern front end. On that calendar view you'll see the 'calendar overlay' button there. You should be able to add your other list views to this to get your color coding.

Highlighted

@Robin Nilsson I think I fall into the "cannot be done" category because I'm creating calendar views of an existing list, not a dedicated calendar list.  The list has a lot of columns (project name, website, description, contact name, contact email address, application date, notification date, project start date, project end date, etc). I then went to List Settings -> Create View -> Calendar and then used one of the date columns for both Time Interval columns.  I repeated that for each of the date columns. So sounds like I may be out of luck.   

Highlighted

@0123456789 Oh wait. I might have misunderstood you. I found another article and it seems to be doing what I want. Thanks for your help! 

 

https://sharepointmaven.com/roll-calendars-sharepoint/

Highlighted

@Robin Nilsson Hi Robin. I'm hoping you might be able to help me with one other calendar-related issue. In the month view, there is a timestamp above the title. I don't include the time in any of my date columns so they all say 12:00 a.m - 12:00 a.m.  I've attached a screenshot if it helps to understand the situation. Anyway, any idea how I can get rid of the time? I don't see it listed as an option. 

Highlighted

@0123456789 That one is more difficult. I've only used it on classic view on SP2013 on premise, so not sure it will work with SharePoint online. The calendar entries are async so it's more difficult to code for. To the calendar page I added a script editor and included this. It removes the time AND it expands the calendar to show everything, not just the first 3 events.

<script src="/Javascript/JQuery/JQueryMin-1.11.1.js"></script>
<script type="text/javascript">
// this version works faster, but there's a memory leak - the IE memory
// keeps growing. Change it from 100 to 1000
// and if you get to a month that has no items, it turns off the expand.
// remove the expandCheck.
// this works in Chrome
var $si;
var $sii;

_spBodyOnLoadFunctionNames.push("ready");

function ready()
{
 ExecuteOrDelayUntilScriptLoaded(init, "sp.ui.applicationpages.calendar.js");
}

function init()
{
 $si = setInterval(expandAll, 1000);
// $sii = setInterval(expandCheck, 2000);
}

function expandAll() 
{
 var $a = $("a.ms-cal-nav");
 if($a.html() != null)
 {
  $a.each(function(i){
   
      if($(this).text().indexOf("more")>-1)
      {
        $(this).find('img').trigger("click");
      }
  });
 }
   $('div.ms-acal-ctrlitem').hide();
  $('div.ms-acal-time').hide();

 $a = '';
 
}

function expandCheck()
{
 var flag = true;
 var $a = $("a.ms-cal-nav");
 if($a.html() != null)
 {
  var len = $a.length;
  for(var i=0; i<len; i++)
  {
   if($a.eq(i).text().indexOf("more")>-1)
   {
     flag = false;
   }
  }
  if(flag)
  {
   clearInterval($si);
   clearInterval($sii);
  }
 }   
}
</script>
That one worked for me, but it's depending on SP2013 page structure of the calendar. Maybe it will give you some ideas - I'm doubting it will work in SPO but ya never know!. I think this script came from Marc Anderson 5-6 years ago....

 

Highlighted