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

This field will only outputs a string, it does not output any HTML. This makes it different from the Rich Text field which can output formatted HTML.

 

Configuration

Assign the Key Text field a Field name, API ID, and Field placeholder that will display in the entry editor. 

 

JSON Editor

The following allows you to input a simple string:

"description": {
  "type": "Text",
  "config": {
    "label": "Product Description",
    "placeholder": "Enter the product description..."
  }
}

 

JSON Reference 

"type": (string, required) Value must equal "Text"

"config": (object, optional) Options listed below

 

config

"placeholder": (string) Sets a user-friendly placeholder into the field 

"label": (string) Sets the label that shows up for the field in the entry editor

"useAsTitle": (boolean) If set to true, will use this field for the document name on the document listing page

Did this answer your question?