Solved

SharePoint 2010 Calendar deault "All Day Event" field to yes.

Posted on 2011-03-17
1
1,347 Views
Last Modified: 2012-05-11
I ahve found various solution online to do this; however, they involve me changing the Master Content Type of the "All Day Event" to a pciker box from a list.  Whne I do this I can set the "All Day Event" to a dfault value; however, this does not tie back to the time; therfore even though the "All Day Event" files is defaulted to yes, the events still displays the time of the event on the calendar.  How can default the "All Day Event" to yes so that the time fields disappear?
0
Comment
Question by:jrayos1976
1 Comment
 
LVL 15

Accepted Solution

by:
dp_expert earned 500 total points
Comment Utility
Hello you cannot do it out fo the box, but you can do it in 2 ways:
If you have SharePoint Server Enterprise you can use infopath to customize the form and get the behavior you need.
If you do not have the enterprise version you can use SharePoint designer to check this field after the page is loaded. You need to add a javascript that will check if the checkbox is checked and if not then check it.

See this post to learn how to find a specific field of a form http://www.experts-exchange.com/Q_24546806.html.

Note: Since selecting the checkbox causes page reload you should also have a check for postback, so users would be able to uncheck the checkbox and pick hours.
function isPostBack()
  {
   if ( !document.getElementById('clientSideIsPostBack') )
    return false;
 
  if ( document.getElementById('clientSideIsPostBack').value == 'Y' )
    return true;
   else
    return false;
  }

Open in new window

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now