Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Cascade Dropdown not working

$
0
0
I have 2 lists.
  1. Products - Title column is a list of products
  2. Types - 2 columns. Title is the type of Products and Product is a look column pointing to the Products list.
I am working on a picture library and have added two lookup columns.
  1. Product Category - Lookup folumn from Products.
  2. Product Sub Category - Lookup column pointing to the Title column of Types.
Here is my code.
<script language="javascript" src="/jQueryLibraries/jquery-1.7.2.js" type="text/javascript"></script>
<script language="javascript" src="/jQueryLibraries/jquery.SPServices-2013.02a.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
                    $(document).ready(function() {
                          $().SPServices.SPCascadeDropdowns({
                                       relationshipList: "{1ACCE6FE-F79F-493E%2DBFED-CB94CDE7F7C4}",
                                       relationshipListParentColumn: "Product",
                                       relationshipListChildColumn: "Title",
                                       parentColumn: "Product Category",
                                       childColumn: "Product Sub Category",
                                       debug: true
                             });
                    });
</script>
If I change something, like parentColumn, to a wrong column I get an error. However the second dropdown only displays "none" when I select a Product Category. There are values in the lookup lists that correspond to each Product Category.

Can anyone see what I am missing? I have been puling my hair out over this.

Thank You,
Michael

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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