Solved

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

Posted on 2011-03-17
1
1,379 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint 2013 Blog Template 2 53
SharePoint 2013 with K2 5 29
SharePoint 2013 Link to File on Network Drive Not Working 3 55
Forcing check-in on SharePoint 2010 4 28
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 …
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

856 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