Newer Version Available

This content describes an older version of this product. View Latest

Field-level Errors

Field-level errors are displayed when a validation error occurs on the field after a user input. The framework creates a default error component, ui:inputDefaultError, which provides basic events such as click and mouseover. See Validating Fields for more information.

Alternatively, you can use ui:message for field-level errors by toggling visibility of the message when an error condition is met. See Dynamically Showing or Hiding Markup for more information.

Field-level error

Working with Events

Common events for ui:message include the click and mouseover events. For example, click="{!c.revalidate}" calls the client-side controller action with the fuction name, revalidate, when a user clicks on the error message.