Like what we’re doing? Star us on GitHub!

UI Fields

Nog
3 weeks 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

  • Mark | Omniux
    3 weeks 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
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More