Check documentation for the latest version of dhtmlxSuite getItemValue DHTMLX Docs

getItemValue

returns the value of an item

mixed getItemValue(string name);
namestringthe name of an item
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