Search.../

validationMessage

Gets a message indicating why the file is invalid or could not be uploaded. Contains empty string if the file is valid and successfully uploaded.

Description

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

The message indicates why a file was not valid, or why a file could not be uploaded to the Media Manager. (This could happen, for example, if the Internet connection is not stable.)

Type:

stringRead Only

Related Content:

Was this helpful?

Get the validation message

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