We have a request to limit the number of items that can be selected in a cascade must-select to 2. Is this possible?
Current code (Ignore any errors, had to manually type it):
function AlLoc(){
var resType = getFieldValue(“Resource_x0020_Type”);
if (resType == “CLP Contractor” || resType == “Contractor” || resType == “FTE B4 – B9” || resType == “SP Onshore”){
var mgr4 = getFieldValue(“DFFSMgr4LName”);
var Loc2 = getFieldValue(“LocCat2”);
spjs.casc.init({
‘manualMode’:true,
‘lookupList’:’Lookup-Location’,
‘lookupListBaseUrl’:'{currentSite}’.
‘lookupListFields’:[“LocCat2″,”ST_x002d_City_x002d_Address”],
‘thisListFields’:[“LocCat2″,”AlternateLocations:multi”],
‘droupDownDefaultvalue’:”,
‘filter’:'{“filterField”:”ValidForTE”,”filterValue”:”‘ + mgr4 + ‘”,”operator”:”substringof”}’,
‘hideEmptyDropdowns’:false,
‘autoselectSingleOption’:true,
‘clearInvalidSelection’:true,
‘sideBySide’:true,
‘debug’:false,
});
}
}