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

# Function: useGetFieldValue()

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

从表单状态上下文中获取表单字段值。

## Returns

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

## Example

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