getItemValue

returns the value of an item

mixed getItemValue(string name);

Parameters

namestringthe name of an item

Returns

mixedthe item's value

Example

var value = myForm.getItemValue(name);

Details

In the case of a calendar item, the method returns the value as a Date object. If you need to get the value as a string with the specified date format, you should specify the 2nd parameter and set it to "true":

var value = myForm.getItemValue("myCalendar", true);

In the case of multiselect, the method returns an array.

Back to top