✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

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?