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">

function hideall()
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 ;
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 ;

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.