Templating the Key Text field
The Key Text field allows content writers to enter a single string.
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 Key Text value
Here's an example of how to access the text from a Key Text field. In this case, the Key Text field has the API ID of special_note.
const note_text = document.special_note;