returns the value of an item
name | string | the name of an item |
mixed | the item's value |
var value = myForm.getItemValue(name);
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