Search.../

validateOnBlur

Sets or gets whether to validate the mobile element when it loses focus.

Description

An element loses focus (blurs) through user actions, such as pressing a button or another input element.

If validateOnBlur is true, the mobile element will validate when it loses focus.

If validateOnBlur is false, the mobile element won't validate when it loses focus.

Type:

booleanRead & Write

Was this helpful?

Get whether to validate the mobile element on blur

Copy Code
1let validateElementOnBlur = $w('#myMobileElement').validateOnBlur; // false
Set whether to validate the mobile element on blur

Copy Code
1$w('#myMobileElement').validateOnBlur = true;