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

Looking for some help with SPServices.SPCascadeDropdowns

Dec 4, 2012 at 4:20 PM
Edited Dec 4, 2012 at 4:22 PM


I have just started using SPServices and Jquery and have run into a stumbling block with SPServices.SPCascadeDropdowns and was wondering if anyone could help.  I started very simple and I'm trying to cascasde the info from an Application List to a Category List. 

  • The Application list only contains one Column:  Application
  • The Category list contains two columns:  Title and Application (a lookup to the Application list
  • The fieldnames on my form are Application and Category

I valided the jQuery and SPS library links are working and was able to succesfully use SPServices.SPGetCurrentUser to pull some user information on another list.

Here is the code (I also tried with 1.8.3 jQuery library): 

<script language="javascript" type="text/javascript" src="Libraries/jquery-1.8.2.min.js"></script>
	<script language="javascript" type="text/javascript" src="Libraries/jquery.SPServices-0.7.2.js"></script>			
	<script language="javascript" type="text/javascript">
	$(document).ready(function() {
			relationshipList: "Category",
			relationshipListParentColumn: "Application",
			relationshipListChildColumn: "Title",
			parentColumn: "Application",
			childColumn: "Category",
			debug: true

I'm receiving an error on the page when previewing it in a browser:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E; MS-RTC LM 8)
Timestamp: Tue, 4 Dec 2012 16:17:56 UTC

Message: 'childColumnStatic' is undefined
Line: 1357
Char: 3
Code: 0
URI: /sites/SPOT/Libraries/jquery.SPServices-0.7.2.js

I have a feeling it is something very simple I'm missing.  Any help would be much appreciated!

Dec 5, 2012 at 5:01 AM

My guess is that your form page isn't in the list context. SPServices expects that form pages will live with the default forms.


Dec 6, 2012 at 5:13 PM

Thanks Marc that did it.

Dec 6, 2012 at 5:22 PM


Note that you can also pass in the listName if you'd rather store your pages elsewhere. By default, I determine the listName from the URL:

listName: $().SPServices.SPListNameFromUrl(),


Feb 23, 2013 at 2:43 AM
Is it possible to use this technique when adding new items to a library? I too am getting this error. I have the script on the edit form, which is what is called after the document is uploaded to the library. I see Marc's comment about passing in a listName, but if that is what I need to do - could you clarify where/how to do that in the script? Thank you
Feb 23, 2013 at 8:22 PM
Disregard. This turns out to be related to your blog post, Stepping down to 1-8-1 removed the error.