I have multi select cascading in list newform.aspx
, like in the picture below. I have values in my column, it is not shown in the picture below.
Duplicate values also come in my second column. I have code to remove duplicates from this column.
var usedNames = {};
$("select[title='TitleColumn'] > option").each(function () {
if(usedNames[this.text]) {
$(this).remove();
} else {
usedNames[this.text] = this.value;
}
});
I wanted to know what event should I execute this code so that when items are selected in the first column and when the second column gets populated, it should only show unique values.