I've been working on this for hours now, and I connot get it to work.
Clearly my references are incorrect, becasue I keep getting a
"SCRIPT5009: 'childColumnStatic' is undefined
jquery.SPServices-0.7.2.min.js, line 19 character 28926"
error in the IE script debugger
My intention is to have a list of 'Law Types' (similar to 'regions' in your sample) and a list of 'Practice Codes" (similar to states) That gets filterd based on which Law Type was chosen.
"Law Type" is a simple list:
Title - Single line of text
"Practice Code" list has two columns:
Code - Single line of text (<- was orginally 'Title' in a custom list)
Law Type - Lookup tot he 'Law Type' is, title field
My code is:
$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
relationshipList: "{20B5AB29-57CF-4BA7-9A2F-A6743784AD34}", //<- 'Practice Code' list
relationshipListParentColumn: "Law Type", // <- The lookup for Law Type in Partice code
relationshipListChildColumn: "Code",
relationshipListSortColumn: "ID",
parentColumn: "Title",
childColumn: "Code",
debug: true
});
});
Can you please help shed light on where I am going wrong? This would be very useful in many of our sharepoint lsits.
↧