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 the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?