Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPCascadeDropdowns - 1 parent; multiple children - only the 1st instance works

$
0
0
Hi all,
I've been using these SPservices for some time now and I think they work great. Recently I've had a new requirement involving cascading drop downs, and this particular case involves 1 parent drop down that filters/dictates the contents of 2 child drop downs. I've originally used site columns for the lookup columns, but I ditched those and tested with normal lookup columns, it doesn't seem to make a difference(I tried it on a whim). The issue is that only the 1st cascade code block works and the 2nd drop down does not display the correct contents. If I swap the 2 code blocks then the 2nd drop down works and the 1st does not display the correct contents.

I'm currently on a SharePoint 2010 environment(on prem)

parent: Region
children: Function, Business

relationships: Region -> Function, Region ->Business

Here is the code I used below

$().SPServices.SPCascadeDropdowns({
relationshipList: "Function",
relationshipListParentColumn: "Region",
relationshipListChildColumn: "Title",
parentColumn: "Region",
childColumn: "Function"
});
$().SPServices.SPCascadeDropdowns({
relationshipList: "Business",
relationshipListParentColumn: "Region",
relationshipListChildColumn: "Title",
parentColumn: "Region",
childColumn: "Business"
});

I've also tried various combinations of previous releases of SPservices and jQuery.
Any suggestions?

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>