简体   繁体   English

Javascript - 下拉菜单不显示所有选择

[英]Javascript - Drop Down not showing all selections

First, I am a rookie with JavaScript. So, in SharePoint using a web part, the drop down for D Jobs will not show all select-able items.首先,我是 JavaScript 的菜鸟。因此,在 SharePoint 使用 web 部分时,D Jobs 的下拉列表不会显示所有可选项目。 It appears to only show 100 select-able items, but is needs to show all 150 items in the drop down.它似乎只显示 100 个可选择的项目,但需要在下拉列表中显示所有 150 个项目。 I'm not sure why.我不确定为什么。 Any help would be appreciated.任何帮助,将不胜感激。 Here is the script.这是脚本。

<script type="text/javascript"
src="https://Sharepoint/SiteAssets/jquery.js"></script>

<script type="text/javascript"
src="https://SharePoint/SiteAssets/HillbillyCascade.js"></script>   

<script type="text/javascript">
      $(document).ready(function() {
      
            var cascadeArray = new Array();
            
            cascadeArray.push({
                  parentFormField: "Shop", //Display name on form of field from
parent list
                  childList: "D Jobs", //List name of child list
                  childLookupField: "Title", //Internal field name in Child List
used in lookup
                  childFormField: "D Job", //Display name on form of the child
field
                  parentFieldInChildList: "Shop0", //Internal field name in Child
List of the parent field
                  firstOptionText: "(Filtered by Shop)", dropDownItemCount:"999"
//Number of Items to Display on dropdown to remove 100 item limitation
            });
                 
            $().HillbillyCascade(cascadeArray);

});

</script>

src="https://SahrePoint/SiteAssets/HillbillyCascade.js"></script> I see a typo Sahre it should be Share src="https://SahrePoint/SiteAssets/HillbillyCascade.js"></script>我看到一个错字Sahre应该是Share

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM