Form and getItemValue

Hello,

I’m wondering why the getItemValue returns the correct value only after bluring the item.

E.g. I have a form and a toolbar with a “Save”-button. Clicking the button and getting the value of an input element that have the focus will return the old value and not the new value.

Any idea?

Thanks in advance
Horst

This is expected behavior. getItemValue() returns new value only after you fished item editing.
But you can access to the input object value directly with following code:

var value=myForm.getInput(itemId).value;