hasErrorMessage

val hasErrorMessage: Boolean

true if there is an error message that can be shown.


Important:

Error messages for a field are only generated if the field has been edited by the user and focus has changed to another field. That means isValid could be false but still not have an error message


To provide different behavior, set displayErrors to false and use fieldStates to implement custom error logic