Edit on GitHub
Jump to docs navigation

Field Types / Textarea field

Note: You are currently reading the documentation for Bolt 3.4. Looking for the documentation for Bolt 3.5 instead?

Simple text-input, for multi-line fields.

Basic Configuration:

            type: textarea

Example usage in templates:

{{ record.content }}


The field has a few options to change the functionality of the field.

  • allowtwig can be set to true or false to control if twig may be used in the field
  • pattern Use this to validate the field against a certain pattern.
  • placeholder Placeholder text inside the input control.

Input Sanitisation

All content in this field type will be inserted into the database as-is. No sanitisation will take place. This means that if you need to allow the editors to insert unfiltered HTML or javascript in the content, you can do so using this field type.

On the other hand, if you do want the extra failsafe of having the input filtered before it gets saved in the database, use a type: text, type: html or type: markdown field instead.

Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on IRC.