Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
docs: add getDataByPath to useForm table (#12098)
<!-- Thank you for the PR! Please go through the checklist below and make sure you've completed all the steps. Please review the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository if you haven't already. The following items will ensure that your PR is handled as smoothly as possible: - PR Title must follow conventional commits format. For example, `feat: my new feature`, `fix(plugin-seo): my fix`. - Minimal description explained as if explained to someone not immediately familiar with the code. - Provide before/after screenshots or code diffs if applicable. - Link any related issues/discussions from GitHub or Discord. - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Fixes # --> ### What? This PR adds the `getDataByPath` utility function to the `useForm` table in the docs. ### Why? This utility is useful for dealing with arrays and other form state. Users commonly ask for examples on how to deal with arrays when using `useField` as this function will return a length instead of the expected value object. ### How? Addition of `getDataByPath` to the `useForm` object table in `docs/admin/react-hooks.mdx`.
S
Said Akhrarov committed
69a49e77cdde334d77bf8c86108e0b2eac309629
Parent: df03ed0
Committed by GitHub <noreply@github.com>
on 4/2/2026, 3:31:18 PM