SPServices.SPCascadeDropdown Problem

Jan 15, 2015 at 5:30 PM
Hi there,
I am creating a cascading dropdown with four fields to select from.
the code I am using is
``` `<script type="text/javascript">

$(document).ready(function(){
$().SPServices.SPCascadeDropdowns({
relationshipList: "Subclass",
relationshipListParentColumn: "Class",
relationshipListChildColumn: "Subclass",
parentColumn: "Class",
childColumn: "Subclass",
debug:true
})
})

$(document).ready(function(){
$().SPServices.SPCascadeDropdowns({
relationshipList: "Subproject",
relationshipListParentColumn: "Project",
relationshipListChildColumn: "Title",
parentColumn: "Project",
childColumn: "Subproject",
debug:true
})
})
</script>
`` When using the code I get and error and only the first, third, and fourth fields populate. When I take the code out of the newform.asp page all the fields load(obviously without the cascading effect). This is the error I get

""Error in function
SPServices.SPCascadeDropdowns
Parameter
relationshipListParentColumn: Class or relationshipListChildColumn: Subclass Message
Not found in relationshipList Subclass Click to continue"

I am lost because the cascading effect works for column 3&4.
Any thing to point me in the right direction would be awesome. Thank you
Coordinator
Jan 15, 2015 at 7:02 PM
If you're following the relational list pattern I recommend for this, odds are this:
relationshipList: "Subclass",
relationshipListParentColumn: "Class",
relationshipListChildColumn: "Subclass",
should be:
relationshipList: "Subclass",
relationshipListParentColumn: "Class",
relationshipListChildColumn: "Title",
M.