Gets the control status after the last validation.
Syntax
var isInvalid = ctrl.invalid();
Arguments
No arguments.
Return value
True if the control is Invalid.
False if the control is Valid.
Example
Get the control status using the JavaScript OnLoad event:
var ctrl = Runner.getControl(pageid, 'YearOfMake');
var isInvalid = ctrl.invalid();
See also:
•JavaScript API: Control object > getControl()
•JavaScript API: Control object > addValidation()
•JavaScript API: Control object > removeValidation()
•JavaScript API: Control object > validate()
•JavaScript API: Control object > validateAs()
•"Edit as" settings: Validation types
•JavaScript API: Control object