How can I make all events "all day" by default and also hide the all-day checkbox? Do I need to edit the new form or use a content editor web part?

1 Answer 1


There is no OOB way yo set All Day Event default value. You need to add scripts to the NewForm.aspx or EditForm.aspx to check the All Day Event and hide it.

Edit the New Form or Edit Form, enter the following script into the page using a Script Editor web part or a Content Editor web part.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
function ready()
  // checks All Day Event
    if (!$('span[title="All Day Event"] > input').attr("checked"))
    $('span[title="All Day Event"] > input').click();
  //hide check-box
  $('tr:has(span[title="All Day Event"])').not('tr:has(tr)').hide();
  //$('nobr:contains("All Day Event")').closest('tr').hide();

Check the following blog for more information:


  • Thanks for the info, but it did not work in my enviroment Commented Jan 8, 2019 at 15:05
  • Could you provide the steps about how you use the script for troubleshooting? Are using the OOB form? Use F12 to check whether the jQuery library and scrips are loaded. Commented Jan 9, 2019 at 1:27
  • If it helps you, please accept it as the best answer. Thanks Commented Jan 10, 2019 at 2:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.