Sets a button value.
JavaScript |
|
setButtonValue(id, val) |
|
Parameters
id
The ID of the button.
val
The value type depends on the button type
Button type |
Value |
Checkbox |
Boolean (True – checkbox is selected; False – checkbox is cleared) |
Toggle |
Boolean (True – button is pressed; False – button is not pressed) |
select/nativeSelect |
commandParam of child entry |
Text |
A string representing the text value |