Join us live Sept. 27 – How Sanity and Vercel powered Morning Brew's transformation –>

Is it possible to have a drop down that present a choice between two different types? Like a string and an image? Would it need to be an array?

2 replies
Last updated: Feb 3, 2021

Is it possible to have a drop down that present a choice between two different types? Like a string and an image? Would it need to be an array?

Feb 2, 2021, 11:50 PM

Yeah, I use arrays when I need to do this. You can create the types, and then reference them.

Feb 3, 2021, 12:08 AM

I see, thanks.

Feb 3, 2021, 12:45 AM

Sanity.io: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Give your team exactly what they need to edit and publish their content with the customizable Sanity Studio. Get real-time collaboration out of the box. Sanity.io comes with a hosted datastore for JSON documents, query languages like GROQ and GraphQL, CDNs, on-demand asset transformations, presentation agnostic rich text, plugins, and much more.

Don't compromise on developer experience. Join thousands of developers and trusted companies and power your content with Sanity.io. Free to get started, pay-as-you-go on all plans.