Templating the Select field

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


Before Reading

This article assumes that you have saved the document object in a variable named document as shown in the Retrieve the document object page.

Access the Select value

Here is an example of how to retrieve the value from a Select field which has the API ID category.

Copy
const category = document.category;