SPCascadeDropdowns in library Upload.aspx

Oct 6, 2015 at 2:55 PM
Edited Oct 6, 2015 at 2:56 PM
I am trying to use the SPCascadeDropdowns in an Upload.aspx form in a library and the filters are not working. I am also not getting any error messages with the debug on, or from Firebug. The code works fine in a list but is not filtering anything in a library. The subtype drop down has all choices and is not filtered based on template. I am using SharePoint online 2013 and IE11. Here is the code, I am changing only the parentColumn and childColumn when moving from library to list.

<script language="javascript" src="https://XXX.sharepoint.com/sites/assets/SiteAssets/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="https://XXX.sharepoint.com/sites/assets/SiteAssets/jquery.SPServices-2013.01.min.js" type="text/javascript"></script>
<script type="text/javascript"> $(document).ready(function() { $().SPServices.SPCascadeDropdowns({ relationshipList: "{70231A89-B739-4E61-BFDC-D7759B963D34}", relationshipListParentColumn: "Template1", relationshipListChildColumn: "Title", parentColumn: "Template_Type", childColumn: "Subtype", debug: true }); }); </script> I have also tried adding the code to a new library editform.aspx and see the same results as the upload.aspx.

Any help on this would be great.
Thanks in advance.
Coordinator
Oct 15, 2015 at 7:25 PM
It's hard to say what the issue might be. You can't really add script to upload.aspx, though, as it's a page in the _layouts folder.

If you debug using the browser tools, I'm sure you'll get some sort of hint.

M.