Solved

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

Posted on 2011-03-17
1
1,395 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
dp_expert earned 500 total points
ID: 35163743
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

696 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