function createNameEntry(){
var inAddMode = "<webobject name = "inAddMode"/>";
$('NameEntry').value = "";
var typeIndex = $('typeSelect').selectedIndex;
var sectorIndex = $('sectorSelect').selectedIndex;
var ratingIndex = $('ratingSelect').selectedIndex;
if($('typeSelect').selectedIndex > 0){
$('NameEntry').value += $('typeSelect').options[typeIndex].text+" - ";
}
if($('sectorSelect').selectedIndex > 0){
$('NameEntry').value += $('sectorSelect').options[sectorIndex].text+" - ";
}
if($('ratingSelect').selectedIndex > 0){
$('NameEntry').value += $('ratingSelect').options[ratingIndex].text;
}
}
The NameEntry field gets set correctly and then upon submit.. it gets the "first" object of the list always.