I want some of the values in multipicklist to be active and some inactive .But its not happening .I have attached the code .Every value is being inactive.
var matchedStates = getMatch(tempSplit, applicableStatesSplit);
var unMatchedStates = getDiff(tempSplit, applicableStatesSplit);
for(i = 0; i < (matchedStates.length) ; i++)
{
console.log('MatchedStates ’ +matchedStates.length);
//.log('unMatchedStates ’ +unMatchedStates.length);
codes.push({
active: true,
defaultValue: false,
label : matchedStates i],
value : matchedStatesii] });
}
for(i = 0; i < (unMatchedStates.length) ; i++)
{
//console.log('MatchedStates ’ +unMatchedStates.length);
console.log('unMatchedStates ’ +unMatchedStates.length);
codes.push({
active: false,
defaultValue: false,
label : unMatchedStatesbi],
value : unMatchedStatesi] });
}
console.log(codes);
field.element.append(
skuid.ui.renderers.MULTIPICKLIST.edit({
entries : codes
}));