UI Fields

default discord avatar
Nog
6 months ago
2

Is it possible to get data from context within UI type fields?



as an example :


i would like to display an Image from URL in the Admin panel which is stored in another field of the same collection entry

  • default discord avatar
    Mark | Omniux
    6 months ago

    Try with the useFormFields React hook 😄



    https://payloadcms.com/docs/admin/hooks


    It's a great way to get the state of a field without triggering any heavy duty rerenders

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.