reportValidity

open override fun reportValidity(): Boolean(source)

The reportValidity() method of the HTMLInputElement interface performs the same validity checking steps as the checkValidity() method. In addition, if the invalid event is not canceled, the browser displays the problem to the user.

MDN Reference