Rendering the Select Field

The Select field will add a dropdown select box of choices for the content authors to pick from.


Before Reading

This page assumes that you have retrieved your content and stored it in a variable named document

Output Select Value

Here is an example of how to retrieve the Select field value. In this case, the Select field has an API ID of category.

Copy
// In a React component
render() {
  return <span className="category">Category: {document.data.category}</span>
}

Was this article helpful?
Not really
Yes, Thanks

Can't find what you're looking for? Get in touch with us on our Community Forum.