Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Cascading DropDown

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>

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>