This project has moved and is read-only. For the latest updates, please go here.

().SPServices.SPCascadeDropdowns returns incorrect child

Jun 13, 2014 at 12:35 AM
Edited Jun 13, 2014 at 12:36 AM

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">
        relationshipList: "HERE I HAVE MY GUID",
        relationshipListParentColumn: "Categories",
        relationshipListChildColumn: "Title",
        parentColumn: "Categories",
        childColumn: "Sub Categories",
        debug: true

The lists are setup as follows.

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

Sub Categories list has 6 Columns:
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:
Customer Lifecycle Management
Customer Adds
Installed Base
Installed Base
Service Plans

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.
Jun 13, 2014 at 3: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?

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