Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Accessing root document properties in custom input element in Sanity.io

3 replies
Last updated: Aug 19, 2020
I have a custom input. Now I want to differ the available options it presents based on properties in the root document being edited. Is this possible? E.g. can I somehow access the root document inside a custom input element?
Aug 19, 2020, 10:53 AM
Nevermind, I'm reading the docs šŸ˜³
Aug 19, 2020, 11:00 AM
šŸ™ˆ
Aug 19, 2020, 11:01 AM

Sanityā€“ build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?