How to default fieldsets to be collapsed in the desk view in Sanity.io

1 replies
Last updated: Apr 14, 2020
anyone know if you can default fieldsets to be collapsed in the desk view?
Apr 14, 2020, 7:22 PM
You can ๐Ÿ™‚ when you define your fieldsets, you can give them these options:
{
  title: 'My collapsed fieldset',
  name: 'collapsedFieldset',
  options: {
    collapsible: true, // Makes the whole fieldset collapsible
    collapsed: true, // Defines if the fieldset should be collapsed by default or not
    columns: 2 // Defines a grid for the fields and how many columns it should have
  }
}
More info on this page:
https://www.sanity.io/docs/object-type#fieldsets-AbjN0ykp ๐Ÿ‘
Apr 14, 2020, 7:35 PM

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?