使用JS Link从“编辑表单”中隐藏“内容类型”行 [英] Hide Content Type row from Edit Form using JS Link
本文介绍了使用JS Link从“编辑表单”中隐藏“内容类型”行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在任务列表的编辑表单中隐藏内容类型行。我怎么能通过JS链接代码做到这一点?
I want to hide Content Type row from Edit Form of Task List. How i can do that through JS Link code?
推荐答案
如果要在任务列表的编辑表单页面中隐藏内容类型行,我们可以将以下jQuery代码添加到此页面的脚本编辑器Web部件中以实现它。
If you want to hide the Content Type row from edit form page in task list, we can add the following jQuery code into a script editor web part in this page to achieve it.
<script src="//code.jquery.com/jquery-3.1.0.min.js" type="text/javascript"></script>
<script type="text/javascript">
(function(){
(function () {
(" .ms- standardheader:contains('Content Type')")。nearest(" tr")。hide();
});
< / script>
(".ms-standardheader:contains('Content Type')").closest("tr").hide(); }); </script>
最好的问候,
Dennis
这篇关于使用JS Link从“编辑表单”中隐藏“内容类型”行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文