_FormConstruct
(esrith/amos/core/_FormConstruct)
Basic class of a form. This class's purpose is to enable FormValidator class functionalities when using this class object with a FormValidator object.
Type |
Description |
name
|
String
|
Name of control. When sending a request to server, this property is the parameter's name.
|
valid
|
Boolean
|
Validity flag that shows whether a form element is validated to be valid (true) or invalid (false).
|
value
|
String | Number | Object
|
Value of the element.
|
Return type |
Description |
isValid()
|
Boolean
|
Returns true when value validation succeeded; otherwise, false.
|
reset()
|
None
|
Reset all state and value to default.
|
<String>
name
Name of control. When sending a request to server, this property is the parameter's name.
<Boolean>
valid
Validity flag that shows whether a form element is validated to be valid (true) or invalid (false).
Default value: true
<Boolean>
isValid
()
Returns true when value validation succeeded; otherwise, false.
reset
()
Reset all state and value to default.