在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 (将#修改为@)