Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🤠 July 18th

Is it possible to dynamically populate the values in a List for a string type?

3 replies
Last updated: Jul 7, 2020
is it possible to dynamically populate the values in a list for a
Jul 6, 2020, 3:08 PM
just following up on this. Is it possible to populate the values of a list at runtime or can it only be done at build time?
Jul 7, 2020, 2:33 PM
actually, I guess one way around it is if I build a custom component that fetches those values at runtime. That would make more sense.
Jul 7, 2020, 2:50 PM
The built in component can't only do it at build time, but as you say, for dynamic values, a custom component is the way to go. Some resources that might be helpful:

Jul 7, 2020, 3:11 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?