jquerysharepoint-2010cascadingdropdown

SharePoint 2010 Cascading Dropdown error in parent column jquery


i know that question is already has been asked but I have read many posts and I didn't found anything for my error(i have try also different versions of javascritpts files(cdn,or downloaded to libary)).Just quick explanation I have three lists cities(title), second list Manicipalities(title,and lookup column CitycodeProperty(Title)) and third list City_Manicipalities(with it has two lookup columns of city and manicipality) where I want for each city to show me only the corresponding municipalities, but it shows me this error for parent column that cannot be found on page. Please any help or advise it will be appreciated. Below it's my code.(the name of "DimoiKinotitesTest" is the municipalities list)

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/0.6.2/jquery.SPServices-0.6.2.min.js" type="text/javascript"></script>


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

var myJQ = jQuery.noConflict(true);

myJQ(document).ready(function(){
    //alert( myJQ.fn.jquery );
    //alert( myJQ().SPServices.Version() );

    // you would put your cascading dropdowns in here, like:
    myJQ().SPServices.SPCascadeDropdowns({
    relationshipList: "DimoiKinotitesTest",
    relationshipListParentColumn: "City",    
    relationshipListChildColumn: "Title",
    parentColumn: "CityCodeProperty",
    childColumn: "MunicipalityCodeProperty",
    debug: true 

        // options
    });
});

</script>

enter image description here


Solution

  • Per my test, I found the reason for your issue: You code works fine but you add the JS code to the wrong page.

    Please add the code in the NewItem page and editItem page intead of the AllItems page.

    Below is my test result.

    List DimoiKinotitesTest: enter image description here

    I reproduced your issue if I add the code in all items page:

    enter image description here

    The code works in NewItem page and EditItem page:

    enter image description here