> For the complete documentation index, see [llms.txt](https://help.brickspacelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.brickspacelab.com/slab/content/blocks/forms/input-field.md).

# Input field

<figure><img src="https://3723856256-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnixyIfIYFWroNtVmZo6%2Fuploads%2Fgit-blob-9db6cd38119f4d511e79dd3f29f64c7714f6bf57%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## Overview

A configurable form input block that renders different types of form inputs based on the selected input type, supporting text, textarea, email, checkbox, radio, select, date, file, and password input types.

## Common use cases

* Use appropriate input types for different data collection needs
* Provide clear labels and help text for better accessibility
* Consider required field settings based on form validation needs
* Create comprehensive forms by combining multiple input field blocks

## Block settings

### General

| Setting                | Description                 | Options                   |
| ---------------------- | --------------------------- | ------------------------- |
| Show advanced settings | Reveals visibility settings | Checkbox (default: false) |

### Content

| Setting               | Description                                                | Options                                                                                                       |
| --------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Input type            | Select the type of form input to display                   | <p>• Text<br>• Textarea<br>• Email<br>• Checkbox<br>• Radio<br>• Select<br>• Date<br>• File<br>• Password</p> |
| Label                 | Label text for the input field                             | Text input                                                                                                    |
| Placeholder           | Placeholder text shown in the input                        | <p>Text input<br><br>Visible when input type is not checkbox and input type is not radio</p>                  |
| Help text             | Additional help text displayed below the input             | <p>Rich text input<br><br>Visible when input type is not checkbox and input type is not radio</p>             |
| Options               | Comma-separated list of options for select or radio inputs | <p>Textarea input<br><br>Visible when input type is "select" or input type is "radio"</p>                     |
| Accepted file types   | File types accepted for file inputs                        | <p>Text input (default: .jpg, .jpeg, .png, .pdf, .svg, .gif)<br><br>Visible when input type is "file"</p>     |
| Enable multiple files | Allows multiple file selection for file inputs             | <p>Checkbox (default: false)<br><br>Visible when input type is "file"</p>                                     |
| Enable required field | Marks the input as required                                | Checkbox (default: false)                                                                                     |

### Display

| Setting    | Description                        | Options                                                                                                                            |
| ---------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Visibility | Controls when the block is visible | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.brickspacelab.com/slab/content/blocks/forms/input-field.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
