Cascading DropDown

Aug 18, 2013 at 9:39 PM
Edited Aug 18, 2013 at 9:41 PM
Absolutly newbie trying to get Cascading DropDown working but it just won't work...

No cascade when I choose Country...

To keep it even more simple I'm trying with just one relation...and yes, I'v read the documentaiton but it seems that I'm starring myself blind on my code so please bare over with me...

Here is my code...
<script type="text/javascript" src="../Utilities/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../Utilities/jquery.SPServices-0.7.2.min.js"></script>
 
<script type="text/javascript">

$(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
    relationshipList: "{4ED5F238-61BA-4EC2-97BD-84EC3FB6585E}",
    //GUID of my Region list
    relationshipListParentColumn: "Country",
    //LookUp field in Region list to Countries list
   relationshipListChildColumn: "Title",
   // Single text field - Title field in Region list holding all the regions
    parentColumn: "Country",
  //Column display name in my Form
    childColumn: "Region",
  //Column display name in my Form
    debug: true
  });
});
</script>
I'm very gratefull for any help...

Using SharePoint Foundation 2010 and IE 8
Aug 18, 2013 at 11:15 PM
Any errors in the console?
Everything looks ok on how you are calling it. Check the referenced to jQuery and SPServices and make sure they are ok.

If it all checks out, try to change the UID of the List with the name of it in the call to CascadingDropdown.

Also,
What form/page are you using this on?

_____
Paul

Sent from mobile device.
Aug 19, 2013 at 7:04 AM
Hi Paul,

First thanks a lot taking your time to look into my problem here...

I'v found two errors..

1) using the Webdeveloper tool in IE and javascript:alert($.fn.jquery); which told me, that the value of the property of $ is undefined...
(Found a great article here...http://sympmarc.com/2012/05/10/but-is-jquery-already-loaded/)

2) My code were in the Editform.aspx and not in the Newform.aspx

Now moving the code to the Newform.aspx and changing the reference to the JQuery and SPServices - since I'v got them in a document library called Utilities in my teamSite - it's now working like a charm...

Again thanks a lot for pointing me in a direction....And BTW Marc if you read this thanks for at great library it's really awesome...

Here is a copy of my new code:
<script type="text/javascript" src="/Utilities/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/Utilities/jquery.SPServices-0.7.2.min.js"></script>
 
<script type="text/javascript">

$(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
    relationshipList: "{4ED5F238-61BA-4EC2-97BD-84EC3FB6585E}",
    relationshipListParentColumn: "Country",
    relationshipListChildColumn: "Title",
    parentColumn: "Country",
    childColumn: "Region",
    debug: true
  });
});
</script>
Aug 19, 2013 at 5:05 PM
Glad I was able to point you in the right direction.