pp108 : setValue()

setValue()

Syntax

It sets the value of the control.

The onChange event fires on the control when its value is changed, except if the control is hidden or positioned inside a navigational or display grid.

Script

ControlID.setValue(value)

Parameters

Parameter

Description

sValue

String. The new value that needs to be set to control.

Note:
For Select and List controls, the svalue parameter refers to the value of an option, and selects the first option that is associated with the value passed.

Applies to

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