In the Sanity Studio schema, I created an object type with one field that is dependent on another. If the "all" field is checked true, then the "date" field should be hidden or disabled.
However, I am unsure of how to implement this. I have searched for examples or guides in the documentation but have come up empty-handed.
const dateTime = {
name: 'dateTime',
type: 'object',
fields: [
{
name: 'all',
type: 'boolean',
},
{
name: 'date',
type: 'date',
},
],
};