validationMessage

An optional validation message indicating a problem with the current input value.

By setting a string, the InputBox will use a default InputBoxValidationSeverity of Error. Returning undefined clears the validation message.

Online Documentation