Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > Control object > Methods

JavaScript API: Control object > invalid()

Scroll Prev Next More

 

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

Events: JavaScript OnLoad

JavaScript API: Control object

JavaScript API