> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: useFormValidation()

> **useFormValidation**(): [`FormValidationContextValue`](/next/api/genui/openui/core/interfaces/FormValidationContextValue.md) | `null`

Read the nearest OpenUI form validation context, if one exists.

## Returns

[`FormValidationContextValue`](/next/api/genui/openui/core/interfaces/FormValidationContextValue.md) | `null`
