如何解决在SharePoint经典视图中选择搜索框
<script src="https://mycompany.sharepoint.com/sites/development/SiteAssets/Chosen/sputility.min.js"></script>
<script src="https://mycompany.sharepoint.com/sites/development/SiteAssets/Chosen/jquery-1.12.4.min.js"></script>
<script src="https://mycompany.sharepoint.com/sites/development/SiteAssets/Chosen/HillbillyCascade.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices-2014.02.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="https://mycompany.sharepoint.com/sites/development/SiteAssets/Chosen/chosen.css">
<script src="https://mycompany.sharepoint.com/sites/development/SiteAssets/Chosen/chosen.jquery.js"></script>
<script>
// wait for the window to load
$(document).ready(function ()
{
$(SPUtility.GetSPField('Owner Name').Controls).find('select').chosen({width: "350px"});
console.log("test");
var cascadeArray = new Array();
//filter
cascadeArray.push({
parentFormField: "Owner",//Display name on form of field from parent list
childList: "Vessel",//List name of child list
childLookupField: "Title",//Internal field name in Child List used in lookup
childFormField: "Vessel Name",//Display name on form of the child field
parentFieldInChildList: "Owner Name",//Internal field name in Child List of the parent field
//firstOptionText: "< Select a Claim Activity Type >"
});
$().HillbillyCascade(cascadeArray);
});
</script>
我有问题,当我在搜索字段的下拉列表中创建要选择的脚本时,这在我拥有的SharePoint Classic视图中不起作用。我可以从脚本方面为此提供另一种解决方案吗?因为我的脚本无法运行,但是在进行迁移之前,脚本运行良好。我的下拉列表位于我在其他SharePoint列表上执行的查找筛选器上。谢谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。