Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Request for "generate" button for string type and suggestion to use slug schema type instead.

2 replies
Last updated: Jul 29, 2020
Is it possible to add a “generate” button for a string type? My use case is I created a “shortID” field that I use for url-friendly unique id. I already have it as initial value but would like to generate as well
Jul 29, 2020, 1:42 AM
Could you use the slug schema type and name different to the page slug? At least as a stopgap workaround.
Jul 29, 2020, 2:04 AM
Thanks! Now that I think about, slug would actually be much better
Jul 29, 2020, 2:06 AM

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?