Now you see them, now you don’t. Introducing Conditional Fields.
Blog post from Sanity
Sanity Studio has introduced a feature called Conditional Fields, allowing users to customize the content editing interface based on specific business logic to enhance productivity by showing only relevant information. This feature builds upon Sanity's existing schema capabilities, offering more flexibility by using functions with contextual data to show or hide fields dynamically. Various industries, such as marketing, e-commerce, real estate, event management, and media, can benefit from Conditional Fields by tailoring their interfaces to specific needs, such as displaying only localized fields for translators or hiding irrelevant fields for digital products. This advancement distinguishes Sanity from other content systems, which often require plugins or custom input, by providing a more integrated and user-friendly solution. The upgrade aims to streamline the editor experience, making it easier for developers to meet business requirements while reducing the noise and complexity in user interfaces.