Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

This collection of functions covers all the normal rounding methods of just about any numeric value.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
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…

609 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