Avatar

Level 10

Hi,

you can use an array to collect and combine the values of filled fields.


var aValues = [];


if (!DropdownList1.isNull) {


  aValues.push("Make-" + DropdownList1.rawValue);


}


if (!DropdownList2.isNull) {


  aValues.push("Model-" + DropdownList2.rawValue);


}


if (!DropdownList3.isNull) {


  aValues.push("Year-" + DropdownList3.rawValue);


}


this.rawValue = aValues.length > 0 ? aValues.join(" ") : "";