pp108 : getValue()

getValue()


It returns the value that is stored in the backend. This method is applicable for each control.

The value in each control will be either the value as stored in the back end or in a format understandable by you. The getValue() method denotes the actual value, whereas the getFormattedValue() method denotes the value that is displayed for you to see. Both these values can be same.

Syntax

Script ControlID.getValue( )


Return Value


Returns the value.

Example


If a control shows the date field in the mm/dd/yyyy format, then for a date of 25/11/2004, getValue() returns 2004-11-25T00:00:00.0

Applies to


Input, Password, Output, Code Snippet, Textarea, Check, Radio, Select, List