Hide All Day Event and Recurrence field from a calendar in SharePoint 2013/2016

This SharePoint 2013 tutorial explains, how to hide “All Day Event” and “Recurrence” fields in SharePoint 2013/2016 calendar. Using the script editor web part we can hide All Day event and Recurrence fields in SharePoint 2013/2016 site.

Hide all day event field SharePoint 2013

Follow the below steps hide all day event field SharePoint 2013 or SharePoint 2016.

1. Open your Calendar in SharePoint 2013/2016.

2. Navigate to Calendar tab -> expand from webpart -> and click on Default New form.

3. Now your new form will show in edit mode.

4. Click on Add web part to add a content editor web part or a script editor web part in SharePoint 2013/2016.

5. Now from ribbon click on edit source and paste the following code.


<script type="text/javascript">

_spBodyOnLoadFunctionNames.push("hideall()");
function hideall()
{
HideField("Recurrence");
HideField("All Day Event");
}

function HideField(title){
var header_h3=document.getElementsByTagName("h3″) ;

for(var i = 0; i <header_h3.length; i++)
{
var el = header_h3[i];
var foundField ;
if(el.className=="ms-standardheader")
{
for(var j=0; j<el.childNodes.length; j++)
{
if(el.childNodes[j].innerHTML == title || el.childNodes[j].nodeValue == title)
{
var elRow = el.parentNode.parentNode ;
elRow.style.display = "none"; //and hide the row
foundField = true ;
break;
}
}
}
if(foundField)
break ;
}
}
</script>

6. Now the desired field will be hidden.

You may like following SharePoint Calendar tutorials:

I hope it will be helpful to you hide all day event field SharePoint 2013/2016.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

>