<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > ComboBox > Method >SetInputValue |
Sets the value of Input Component, Label and FixedTableLabel.
Prototype :
void SetInputValue
(
string ComponentName,
string Value
)
Arguments :
ComponentName |
Component Name |
Value |
Value |
Reference :
If there is a component of the same FormID, the value of the first component is set.
If Input Component has no FormID, name of component is applied as FormID. But Button and VideoPlayer have no input value and are not be applied to SetInputValue function.
To get text of Label and FixedTableLabel as the input value, it must set FormID.
If you set the ComboBox input value to an empty value using this function, regardless of the "Allow Empty Value" property value ComboBox is displayed in a state it does not select anything.
Example :
//If the ComboBox1 has four items. The items are KOR, JAP, ENG and CHI.
This.SetInputValue("FormID", "ENG"); //ENG is selected
Available Events :
OnAddToPage, OnEndBind, OnValueChanged