Calendar make all events All Day events

The SharePoint calendars have an ‘All Day’ field which when checked, hides the time selectors for the dates and makes the event an all day event.

These events show up at the top of the date in Calendar view and are recorded as an All Day event in list views.  I originally found this solution on the SharePoint Fonder blog and then edited it a little to also hide the All Day option.

Check All Day event option and hide the checkbox

Use the following instructions to make the All Day option checked on new event creation (which will hide the time selectors) and to hide the option from the new event form.

1. Go to a Calendar App, click on the Calendar tab and select the All Events view.

2.  On the All Events view, click on the new event option.

3.  The new event page should now open in the full page (not in a popup dialog), click on the Site Actions > Edit page option.

4.  Click on the Add a Web Part option.

5. Scroll down the Categories and find Media and Content, select Script Editor, click the Add button.

6.  Hover over the Script Editor webpart, click on the dropdown arrow, select Edit Web Part.

7.  Now a Edit Snippet option should appear, click it.

8. Paste in the following script to the Script Editor webpart


// We use spBodyOnLoad to avoid SharePoint conflicts
function myCalendarFunction() {
//Checks All Day checkbox if not checked
if (!jQuery(‘span[title=”All Day Event”] > input’).attr(“checked”))
jQuery(‘span[title=”All Day Event”] > input’).click();
//Hides All Day check-box
jQuery(‘nobr:contains(“All Day Event”)’).closest(‘tr’).hide();


9. Click on the Stop Editing option in the ribbon to save the page.

Completed Example: Now whenever creating a new event on this calendar, the events will be created as All Day events.

About Nick Hurst (85 Articles)
SharePoint and Nintex developer who strives to find easy to deploy and maintain solutions for business problems.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: