public interface ValidationErrors
ContextualFormFragment
to report field validation errors.Modifier and Type | Method and Description |
---|---|
void |
addFieldError(String fieldName,
String errorMessage)
Add an error message to a specific field.
|
void |
addFormError(String errorMessage)
Add a general error message that will be rendered at the top of the form.
|
void addFieldError(@Nonnull String fieldName, @Nonnull String errorMessage)
fieldName
- the name attribute value of the fielderrorMessage
- the error message. This should be an internationalised String resolved using SAL's
I18nResolver.Copyright © 2024 Atlassian. All rights reserved.