Search.../

validationMessage

Gets a message indicating why the element is invalid, or an empty string if the message is valid.

Description

Set the value of the validationMessage property using the reject() function of the onCustomValidation() event handler.

Type:

stringRead Only

Related Content:

Was this helpful?

Get the validation message

Copy Code
1let msg = $w("#myElement").validationMessage; // "value missing"