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

New Post: Cascade "pre filter" ?

$
0
0
I am building a list with 500 molds and 500 gages, the cascading drop downs work great for the molds, but now I am ready to add the gages, I can use the same drop downs and just add the records, but the results in the cascading drop downs will double (showing nearly 40 selections to choose from)

Is there a way for me to filter the cascades before they load, to only show Mold or Gages depending on a choice selection in the form?

Ie at the top of the form have a choice selection for GAGE or Mold, then use the other two cascades to finish filtering ?

here is my existing code:
<script src="/sites/pandsq/tag/SiteAssets/jquery-1.11.0.min.js" type="text/javascript"></script><script src="/sites/pandsq/tag/SiteAssets/jquery.SPServices-2014.01.js" type="text/javascript"></script><script type="text/javascript">



//Gets Program Selection for later use
$(document).ready(function(){
    $().SPServices.SPCascadeDropdowns({
        relationshipList: "CorePrograms",
        relationshipListParentColumn: "Title",
        relationshipListChildColumn: "Program",
        parentColumn: "Title",
        childColumn: "Program",
    });  


//Filters commodity by program selection above
$(document).ready(function(){
    $().SPServices.SPCascadeDropdowns({
        relationshipList: "Commodity",
        relationshipListParentColumn: "Program",
        relationshipListChildColumn: "Procom",
        parentColumn: "Program",
        childColumn: "Commodity",
    });  



//filters description by commodity
$(document).ready(function(){
    $().SPServices.SPCascadeDropdowns({
        relationshipList: "ALL-Tools2",
        relationshipListParentColumn: "Procom1",
        relationshipListChildColumn: "Tool_Description",
        parentColumn: "Commodity",
        childColumn: "Description",
        simpleChild: true,
            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>