How do return the list values in my array to the combo box list without using a view?
var s = context.getUrlParameter(“lang”);//gets the language being used by the customer
var enarray=new Array();//creates an English array
var dearray=new Array();//creates a German array
enarray[1]=“Mr”; //Populate values of both arrays
enarray[2]=“Ms”;
dearray[1]=“Herr”;
dearray[2]=“Frau”;
if(s == “en”) { //check which language is being used
return enarray //return values from appropriate array as a list in the combo box
} else {
return dearray
}