getElementValues from DynamicForm

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 :frowning:

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?

getElementValues() is an internal API. Use getValues().

However you ended up using getElementValues() API, be sure to not take that approach again - use the docs instead or you’ll run in circles.

Thank you, this is exactly what I need.

Well, I will keep in mind that in the future.