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

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 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?