<commit_before>---
title: Reference: Form Field Index
taxonomy:
    category: docs
---

## Which fields you can use

The Forms plugin provides the following fields, which you can use to build your forms.

| Field                                   | Description                                                 |
| :-----                                  | :-----                                                      |
| **[Captcha](#the-captcha-field)**       | A captcha antispam field, using reCAPTCHA                   |
| **[Checkbox](#the-checkbox-field)**     | A simple checkbox                                           |
| **[Checkboxes](#the-checkboxes-field)** | A series of checkboxes                                      |
| **[Date](#the-date-field)**             | A date selection field                                      |
| **[Display](#the-display-field)**       | A text or instructions field (not an input field)           |
| **[Email](#the-email-field)**           | An email field, with validation                             |
| **[File](#the-file-field)**             | A file field for uploading                                  |
| **[Hidden](#the-hidden-field)**         | An hidden field                                             |
| **[Honeypot](#the-honeypot-field)**     | A hidden field which returns an error when filled           |
| **[Password](#the-password-field)**     | A password field                                            |
| **[Radio](#the-radio-field)**           | A radio input type                                          |
| **[Range](#the-range-field)**           | A range input type                                          |
| **[Select](#the-select-field)**         | A select field                                              |
| **[Spacer](#the-spacer-field)**         | Used to add a title, text or an horizontal line to the form |
| **[Text](#the-text-field)**             | A simple text field                                         |
| **[Textarea](#the-textarea-field)**     | A textarea                                                  |

### Common Fields Attributes

Every field accepts a list of attributes you can use. Each field could share these common attributes, but particular fields might ignore them. The best way to check which attributes are allowed on a field is to check the field description in this page, and see which attributes are mentioned.

This list provides a common ground so there's no need to repeat the description of a common field.

| Attribute           | Description                                                                                                                                                                                                    |
| :-----              | :-----                                                                                                                                                                                                         |
| `autocomplete`      | Accepts `on` or `off`                                                                                                                                                                                          |
| `autofocus`         | if enabled, autofocus on that field                                                                                                                                                                            |
| `classes`           | accepts a string with one of more CSS classes to add                                                                                                                                                           |<commit_msg>small type (#394)<commit_after>---
title: Reference: Form Field Index
taxonomy:
    category: docs
---

## Which fields you can use

The Forms plugin provides the following fields, which you can use to build your forms.

| Field                                   | Description                                                 |
| :-----                                  | :-----                                                      |
| **[Captcha](#the-captcha-field)**       | A captcha antispam field, using reCAPTCHA                   |
| **[Checkbox](#the-checkbox-field)**     | A simple checkbox                                           |
| **[Checkboxes](#the-checkboxes-field)** | A series of checkboxes                                      |
| **[Date](#the-date-field)**             | A date selection field                                      |
| **[Display](#the-display-field)**       | A text or instructions field (not an input field)           |
| **[Email](#the-email-field)**           | An email field, with validation                             |
| **[File](#the-file-field)**             | A file field for uploading                                  |
| **[Hidden](#the-hidden-field)**         | An hidden field                                             |
| **[Honeypot](#the-honeypot-field)**     | A hidden field which returns an error when filled           |
| **[Password](#the-password-field)**     | A password field                                            |
| **[Radio](#the-radio-field)**           | A radio input type                                          |
| **[Range](#the-range-field)**           | A range input type                                          |
| **[Select](#the-select-field)**         | A select field                                              |
| **[Spacer](#the-spacer-field)**         | Used to add a title, text or an horizontal line to the form |
| **[Text](#the-text-field)**             | A simple text field                                         |
| **[Textarea](#the-textarea-field)**     | A textarea                                                  |

### Common Fields Attributes

Every field accepts a list of attributes you can use. Each field could share these common attributes, but particular fields might ignore them. The best way to check which attributes are allowed on a field is to check the field description in this page, and see which attributes are mentioned.

This list provides a common ground so there's no need to repeat the description of a common field.

| Attribute           | Description                                                                                                                                                                                                    |
| :-----              | :-----                                                                                                                                                                                                         |
| `autocomplete`      | Accepts `on` or `off`                                                                                                                                                                                          |
| `autofocus`         | if enabled, autofocus on that field                                                                                                                                                                            |
| `classes`           | accepts a string with one or more CSS classes to add                                                                                                                                                           |
{'fraction_non_alphanumeric': 0.08436490850376749, 'fraction_numerical': 0.00040365984930032295, 'mean_word_length': 0.7444261910349683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 127, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2762279', 'n_tokens_mistral': 1254, 'n_tokens_neox': 1147, 'n_words': 452}