Home
/code/library

SPCascade 1.0.0

DateUtilJS 1.0.0

SPFormUtilJS 1.0.0

JSPivot 1.0

SPCascade 1.1.1
Multi-level Cascaded Dropdown for SharePoint 2010
Complete Tutorial: www.spcascade.org
Download
<script src="jquery-1.10.2.min.js"></script> 
<script src="jquery.SPServices-2013.01.min.js"></script> 
<script src="SPCascade.1.1.1.min.js"></script> 

<script type="text/javascript">


/** Syntax **/
/*
var spObjName = $().SPCascade({
	destListColTitles: [<Destination List Column Titles array>], 
	srcListColInternalNames: [<Source List internal Column Names array>],
	srcListName: '<Source List Name>',
	srcListFilterCAMLQuery: "<Query><Where>...
				Source List Filter Query..</Where></Query>"
	spWebURL: 'http://sharepointurl',
	getDataOnly: '<true or false>',
	debug: '<true or false>',

});
*/

/** Examples **/
var spObj = $().SPCascade({
	destListColTitles: ['Continent','Country','State','City'], 
	srcListColInternalNames: ['Continent','Country','State','Title'],
	srcListName: 'CitiesLookupList',
	srcListFilterCAMLQuery: "<Query><Where><Contains>
	<FieldRef Name='Continent'/><Value Type='Text'>America</Value>
	</Contains></Where></Query>"
	spWebURL: 'http://sharepointurl',
	getDataOnly: 'false',
	debug: 'true',
});

//Get Complete List Data: 
spObj.getData();

/*=> Returns:
[{"Continent:"North America",Country:"USA", 
State:"Washington", Title:"Seattle"},
{Continent:"North America",Country:"USA",
State:"Washington", Title:"Kirkland"}...]
*/


//Get Choices using single column filter: 
spObj.getChoices("Country", "USA", "Title");

/*=> Returns:
Filtered values in following format:
["Seattle","Kirkland","Redmond"..]
*/


//Get Sub Choices using multiple column filters: 
spObj.getSubChoices(["Continent","Country"], ["North America","USA"], "Title");

/*=> Returns:
Filtered values in following format:
["Seattle","Kirkland","Redmond"..]
*/


//Reset Dropdowns back to text input types: 
spObjName.resetFields();


</script>