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
<p className="category">Category: {document.data.category}</p>