validates a Checkbox control
validate(silent?: boolean): boolean;
Parameters:silent: boolean
- optional, if true - the method will return the result of validation without calling validation events and without modifying the control visuallytrue
, if a control is valid. Otherwise, false
.
Example
form.getItem("checkbox").validate(true); // -> true/false
When calling without the silent parameter or setting it to false, the method invokes the BeforeValidate and AfterValidate events and visually modifies the control.
form.getItem("checkbox").validate(); // -> true/false
form.getItem("checkbox").validate(false); // -> true/false
Change log:
The silent parameter is added in v7.0
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4