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.That was the point at which I realized I had copied the incorrect GUID for the list. That folks was a PICNIC.
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
Thank you Marc for some amazing script.