().SPServices.SPCascadeDropdowns returns incorrect child

Jun 12, 2014 at 11:35 PM
Edited Jun 12, 2014 at 11:36 PM
Hi,

I have a need for two dropdowns in my pages library to work together. The user selects Category, and then a sub Category. My code in the editform.aspx is as follows:
<script type="text/javascript">
$(document).ready(function(){
    $().SPServices.SPCascadeDropdowns({
        relationshipList: "HERE I HAVE MY GUID",
        relationshipListParentColumn: "Categories",
        relationshipListChildColumn: "Title",
        parentColumn: "Categories",
        childColumn: "Sub Categories",
        debug: true
    });
});

</script>
The lists are setup as follows.

Categories list has 3 Columns:
Title
Order (used elsewhere in the site)
CatURL (used elsewhere in the site)

Sub Categories list has 6 Columns:
Title
Link URL (used elsewhere in the site)
Link Order (used elsewhere in the site)
Categories (Lookup to Categories list)
Categories:Order (used elsewhere in the site)
Categories:CatURL (used elsewhere in the site)

__The Pages Library has two lookup columns in addition to regular columns.
Those lookup columns are:__
Categories (Lookup to Categories Title)
Sub Categories (Lookup to Sub Categories TItle)

An example of the relationship is this:
Parent:
Customer
Children:
Customer Lifecycle Management
Customer Adds
Installed Base
Installed Base
Orphans
Service Plans
Surveys
Transitions

When a user comes to the
That was the point at which I realized I had copied the incorrect GUID for the list. That folks was a PICNIC.
Thank you Marc for some amazing script.
Coordinator
Jun 13, 2014 at 2:39 AM
Keep in mind that you can use the list name rather than the GUID, e.g., "Announcements".

You're welcome. Are you all set?

M.
Jun 13, 2014 at 8:33 AM
Yep! The name could change so the guid makes more sense in this case. Thank you again.