Using JavaScript in list previews to call substring() on text fields

1 replies
Last updated: Feb 21, 2023
For list previews: .. can you use any javascript in the preview function? cannot seem to call substring() on what should be a text field
Feb 21, 2023, 7:24 PM
Yes, you can use any valid JS.
Feb 21, 2023, 9:15 PM

Sanity– build remarkable experiences at scale

The Sanity Composable Content Cloud is the 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?

Categorized in