Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Cannot Get Cascading Drop-Downs to Filter

Hi there,

I feel a bit silly asking what I am about to ask as others seem to be able to get it to work but I simply cannot. For my second attempt, I created a brand new site collection to test in. I have created three lists as follows:

I am using SP 2010 Foundation.

List 1 - "Continents" - one single line column called "Continent"
List 2 - "Countries" - one lookup column (to Continents list) called "Continent" and one single line column called "Country"
List 3 - "Location" - lookup column (to Continents list) called "Continent" and lookup column (to Countries list) called "Countries"

So, my understanding is that List 2 is my "Relationship List" and List 3 is where the filtering should take place. So, in List 3, in SPD, I create a New Item Form. Opened that in IE and then Edit Page and added a CEWP below the New Form. I have created a .txt file with my code, saved in Shared Documents library and then pasted the path into the Content Link in the CEWP. Along with trying other versions, I am referencing the latest .js files that I downloaded from this site and saved to Share Documents library.

Below is my code:
<script language="javascript" type="text/javascript" src="/Shared%20Documents/jquery.SPServices-2013.01.js"></script>
<script language="javascript" type="text/javascript" src="/Shared%20Documents/jquery.SPServices-2013.01.min.js"></script>

<script language="javascript" type="text/javascript">

$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
        relationshipList: "Countries",
        relationshipListParentColumn: "Country",
        relationshipListChildColumn: "Continent",
        parentColumn: "Country",
        childColumn: "Continent"
    });
});
</script>
I know I am missing something obvious but I can't see it. Any help would be most appreciated :-)

Kelly

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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