Rendering the Key Text Field

The Key Text field allows content writers to enter a single string.

Before Reading

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

Get the Key Text value

Here's an example of how to retrieve and render a Key Text field. In this case, the Key Text field has the API ID of title.

Copy
<h1>{document.data.title}</h1>