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 author_name.

Copy
// In a React component
render() {
  return <span>{document.data.author_name}</span>
}