需要在有条件的情况下使字段强制执 [英] Need to make field conditionally mandatory

查看:72
本文介绍了需要在有条件的情况下使字段强制执的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我要求在SharePoint列表中有条件地强制要求字段。有一个提交下拉列表。如果我在下拉列表中选择一个特定值,则另一个字段必须是强制性的,对于下拉列表中的其他值,它不一定是强制性的。



任何指针都是非常有帮助!



提前致谢。

Hi all,

I''ve a requirement to make a field in SharePoint list conditionally mandatory. There is a filed which is a dropdown. If I select one particular value in the dropdown, the other filed has to be mandatory and for other values in dropdown it need not be mandatory.

Any pointers would be of great help!

Thanks in advance.

推荐答案

解决方法是在ItemAdding上使用事件接收器( )事件并基于下拉列表中的值,强制用户在保存之前在字段中输入值。根据我的知识,没有OOB方式可用。
Workaround would be to use event receiver on ItemAdding() event and based on the value within the dropdown, forcing the user to enter value in the field before it can be saved. No OOB way is available as per my knowledge.


这篇关于需要在有条件的情况下使字段强制执的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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