> 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: useGetFieldValue()

> **useGetFieldValue**(): (`formName`: `string` | `undefined`, `name`: `string`) => `any`

Get a form field value from the form state context.

## Returns

(`formName`: `string` | `undefined`, `name`: `string`) => `any`

## Example

```tsx
const getFieldValue = useGetFieldValue();
const name = getFieldValue("contactForm", "name");
```
