hasErrorMessage

fun hasErrorMessage(ignoreUneditedFieldErrors: Boolean = true): Boolean

Check if there is an error message to be displayed.

Return

true if there is an error message that can be displayed to the user

Parameters

ignoreUneditedFieldErrors

If true (default value), the field has not been edited by the user and will not be considered for validation. The field is considered "edited" if focus has, at any time, left the field while it contains text