@spartanfx/react v1.0.1
@spartanfx/react / IFormValidation
Interface: IFormValidation
Provides validation utilities for SharePoint list form fields.
Properties
| Property | Type | Description |
|---|
clearErrorMessages | () => void | Clears all currently set validation error messages. |
getErrorMessage | (key) => string | Retrieves the error message for a given field key. |
hasErrorMessage | () => boolean | Indicates if any field currently has a validation error. |
setErrorMessage | (key, errorMessage) => void | Sets a custom error message for a specific field. |