SharePoint Online验证字段 [英] SharePoint Online Validation Fields

查看:86
本文介绍了SharePoint Online验证字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SharePoint Online列表中有两个字段,必须先填写一个字段,然后才能允许您输入另一个列表.

I have two fields in a SharePoint Online List and one must be filled out before you are allowed to enter the other list. 

第一列,称为批准者"的人员或小组字段

1st column, a person or group field called 'Approver' 

第二列,一个名为发送以供审核"的下拉字段

2nd Column, a drop-down field called 'Send for Review'

在发送给审阅者"列允许用户选择所需的批准类型之前,是否有办法确保选择或输入了批准者名称?

Is there a way to ensure the Approver name is selected or entered before the Send for Review column allows users to select what type of approval they require? 

建议将不胜感激.

先谢谢了,

ASLR12

推荐答案

如果批准人"字段,您可以使用InfoPath或脚本表单来禁用发送以供审核"字段为空.

方法:使用InfoPath表单

1.在InfoPath中自定义列表表单.

2.在发送以供审阅"字段中添加格式设置规则.

3.如果批准者"字段为空,请禁用此控件.


方法:使用脚本

我们可以使用 ClientPeoplePicker.OnUserResolvedClientScript 方法可在人员选择器字段发生更改事件时运行脚本.

We can use ClientPeoplePicker.OnUserResolvedClientScript method to run the script when the change event occurs for the people picker field.

有关客户端人员选择器控件的详细信息:

  然后,禁用下拉字段

 Then, disable the drop down field


("select [title ='Send for Review']").attr("disabled",true);
("select[title='Send for Review']").attr("disabled", true);



最好的问候,

张琳达


这篇关于SharePoint Online验证字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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