Long Text at a glance
Input and output
Input type
Multi-line text area
API output
string (preserves line breaks with \n)API response example
Field configuration options
Option Name | Type | Function |
|---|---|---|
| Required? | boolean | Make field required to save page |
| Help text | string | Add help text to describe usage to your team |
| Min length | number | Set a minimum length in characters |
| Max length | number | Set a maximum length in characters |
| Default value | string | Set a default value for the field |
| Exclude from translation | boolean | Exclude the field from translation function |
| Specific pattern | Dropdown | Validates field data against your choice of:
|
Common use cases
- Meta descriptions for SEO
- Article summaries and excerpts
- Product descriptions
- Author bios
- Plain text instructions
- Markdown content (when you’ll parse it on the frontend)
- JSON data (advanced use)
Using Long Text as a Markdown editor
Many developers use the Long Text field to store Markdown content, which is then parsed and rendered on the frontend. This approach is popular for:- Technical documentation
- Developer blogs
- Content where authors are comfortable with Markdown syntax
Example workflow
- Create a Long Text field named
content_markdown - Authors write content using Markdown syntax
- Frontend application parses the Markdown using a library (e.g.,
marked,remark, ormarkdown-it)
API response with Markdown
Best practices
- Consider WYSIWYG instead - If editors need formatting, use the WYSIWYG field
- Document Markdown expectations - If using for Markdown, provide help text explaining the format
- Set reasonable limits - For meta descriptions, use max length of ~160 characters
- Use for SEO fields - Meta descriptions work great with Long Text