?
Solved

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

Posted on 2011-03-17
1
Medium Priority
?
1,448 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 2000 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

Industry Leaders: 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

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

752 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