2

We are using a SharePoint team calendar for vacation form approvals. The default values for new events Start Time and End Time defaults to the next full hour, example 5:00 PM to 6:00 PM, when entering a new item at 4:44 PM.

Is it possible to set the default value for the start time to 8:00 AM and end time to 5:00 PM, but still keep the current, today's date?

We are using SharePoint 2010. I was able to find this, but it does not provide the solution I was hoping for + doesn't work for modal windows.

Any help is appreciated.

2 Answers 2

2

You can disable modal windows using List settings > Advanced Settings > Launch Forms in a dialog = No

The JavaScript given in the "Setting a default duration for new SharePoint Calendar Events" post (I wrote it by the way!) can be easily modified to 8am / 5pm by anyone who's familiar with JavaScript.

Remove Lines 22 to 41 and add this after line 21

cboStartHours.val("08:");
cboEndHoursHours.val("17:");

(Might be slightly different if depending on your regional settings look at the html source to see what values are)

Alternatively

0

Did you considered using updating the default columns to include for their default values a calculated value as per the example Today + 0.33336 (08:00 AM) and Today + 0.70839 (17:00).

Alternatively, did you already calendar settings in your Regional Settings for the particular subsite to match your settings?

3
  • Marius - Thanks for your reply. No luck with the Regional Settings - The newform.aspx for the new calendar event still defaults to the next full hour, even after changing the regional settings (I didn't expect a change, as this setting is used for the calendar display, not the newform.aspx display, right?). I am not certain that you can configure the 'Start Time' and 'End Time' for the newform.aspx for the calendar event - Could you elaborate how to? I am really looking on how to modify the column that will default to the next full how in the newform.aspx. Thanks again, Chris.
    – user8508
    Commented May 24, 2012 at 2:16
  • I meant the actual columns of in the Calendar list. Commented May 24, 2012 at 10:49
  • You can't add in "Default Value" settings for Start/End time in Calendar Lists.
    – Ryan
    Commented May 24, 2012 at 11:07

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.