SharePoint 2013开箱即用的日历自定义 [英] SharePoint 2013 Out of the box calendar customization

查看:85
本文介绍了SharePoint 2013开箱即用的日历自定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个开箱即用的SharePoint 2013日历。我需要能够执行以下操作:

I have a SharePoint 2013 out of the box calendar. I need to be able to do the following:

阻止所有星期三上午8点到9点:

Block all Wednesdays 8am-9am :

删除约会选择控件上的每小时列表(日期/时间)并用8:30而不是8:00(控件的30分钟增量选项而不是每小时)替换。我已经在列表和日期/时间预约
字段上使用数据验证来满足其他要求。因此,UI中的数据验证不是一种选择。

Remove the hourly listing on the appointment selection control (date/time) and replace with 8:30 instead of 8:00 (30 minute increments option for the control instead of hourly). I am already utilizing data validation on the list and date/time appointment field for other requirements. So, data validation from the UI is not an option.

推荐答案

如果想要阻止所有星期三上午8点到9点,我们可以使用Jquery DatePicker来实现:

If want to block all Wednesdays 8am-9am, we could use Jquery DatePicker to achieve:

<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script type="text/javascript">


(function(){
(function(){


(" input [title] ='开始时间']")。datepicker(
{
beforeShowDay:function(date){

if(date.getDay()== 3){
返回[false,''];
}
其他
{
返回[true,''];
}
}
});
});
< / script>
("input[title='Start Time']").datepicker( { beforeShowDay: function (date) { if (date.getDay() == 3) { return [false, '']; } else { return [true, '']; } } }); }); </script>

将脚本添加到日历新项目表单中,当选择日期时,它将阻止所有星期三:

Add the script into the Calendar new item form, when select date, it will block all Wednesdays:

< img alt =""src ="https://social.msdn.microsoft.com/Forums/getfile/1300334">

小时需要30分钟增加,早上8点,我们可以像这样增加分钟值:

And for the hour need 30 minute increase for 8 am, we could increase the minutes value like this:


这篇关于SharePoint 2013开箱即用的日历自定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆