Hi thanks for the reply... I practically copied the script from the form you made, I removed the other array... But I can't make it work, been working on it since you replied on this thread. Please check my script below and find out what or where is the error.
RefreshmentOrderform.RefreshmentOrder.Header.#variables[0].Myitems - (JavaScript, client)
var Itemdesc = new Array(
"Apple",
"Grapes",
"Banana",
"Melon",
"Grapefruit"); //5
var MyUnitPrices = new Array(
"1.90",
"8.95",
"1.00",
"3.90",
"2.90"); //5
function PN_Populate(dropdownField)
{
for (var i=0; i < Itemdesc.length; i++)
dropdownField.addItem(Itemdesc[i]);
}
function PN_ReadOut(Item_Alias, Price_Alias)
{
for (var i = 0; i < Itemdesc.length; i++)
{
if (Itemdesc[i] == Item_Alias)
{
Price_Alias.rawValue = MyUnitPrices[i];
break;
}
}
}