hi!
I have a code:
<SCRIPT language="JavaScript">
var myForm = isc.DynamicForm.create({
width: 500,
numCols: 4,
fields : [{
name: "bugStatus", title: "Bug Status",
editorType: "comboBox",
valueMap : {
"newId" : "New",
"activeId" : "Active",
"revisitId" : "Revisit",
"fixedId" : "Fixed",
"deliveredId" : "Delivered",
"resolvedId" : "Resolved",
"reopenedId" : "Reopened"
}
}]
});
var myButton = isc.Button.create({
id: "showButton",
title: "show",
width: "50px",
click: "showValue();"
});
function showValue(){
var value = myForm.getElementValues().bugStatus;
alert(value);
}
</SCRIPT>
When i click button, alert return value of selected element into comboBox. But the returned value is caption! This’t value what i want ![]()
For example i select caption “Delivered”. I expect that this value will be “deliveredId”, but not the “Delivered” by analogy with the standard construction of HTML:
<select>
<option value="deliveredId">Delivered</option>
</select>
where real value is “deliveredId”!
Perhaps there is another way to get value of selected sections?