
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeYou're on the right track! For selecting multiple strings from a fixed list in Sanity, you'll want to use an array of strings with the list option. Here's how to set it up:
{
name: 'selectedOptions',
title: 'Select Options',
type: 'array',
of: [{
type: 'string'
}],
options: {
list: [
{title: 'Option A', value: 'A'},
{title: 'Option B', value: 'B'},
{title: 'Option C', value: 'C'},
{title: 'Option D', value: 'D'},
{title: 'Option E', value: 'E'}
]
}
}This gives you a nice multi-select interface in the Studio where users can pick multiple values from your predefined list. The data will be stored as an array like ["A", "C", "E"].
Key points:
type: 'array' with of: [{type: 'string'}] creates an array that holds stringsoptions.list property on the array field (not the string type inside it) provides the predefined values['A', 'B', 'C']) or objects with title and value properties for better labelsIf you want the list to appear as checkboxes instead of a dropdown, you can add layout: 'tags' or layout: 'grid' to the options:
options: {
list: [...],
layout: 'tags' // or 'grid'
}This is covered in the Array type documentation under the "predefined strings" example. The array field's copy/paste functionality also works great with this setup if you need to duplicate selections across documents!
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.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store