> For the complete documentation index, see [llms.txt](https://docs.infotopics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.infotopics.com/features/tableau-extension/configuration/schemas/field-formatting/single-line-text.md).

# Single line text

Also known as the `string` field. Use it for one-line text, for masked input such as postal codes, and for picking a location on a map.

You set the field type to **Single line text** when you create the schema in the management console. How that field then looks and behaves in the dashboard is up to you, under **Field formatting**.

### Type of Form Field

* **Text** — an ordinary single-line input.
* **Map Input** — a map the reader clicks to pin a location, which writes the coordinates back to your table. Adds **Map Configuration**, where you set **Zoom Level**, the **Map size in form** and **Map size in overview**, and whether to **Hide Coordinates In Form** and **Hide Coordinates In Overview**.
* **Custom Masking** — forces input into a shape you define. See [Field masking](https://docs.infotopics.com/features/tableau-extension/configuration/schemas/general-features/field-masking.md).

### Format

**Label**, **Placeholder**, **Layout**, **Prefix**, **Suffix** and **Hint**, followed by **Field Validation** and **Conditional Visibility**.

### Field Settings

**Persistent hint**, **Dense**, **Clearable** and **Hide label**.

### Validation

Single line text supports full validation with regular expressions. Under **Field Validation**, choose **Custom regex expression**, then fill in:

* **Custom Regex Expression** — the pattern to match, for example `^[1-9][0-9]{3}\s?[A-Z]{2}$` for a Dutch postal code.
* **Custom validation failed message** — the message the reader sees when their input does not match.

See [Field validation (Regex)](https://docs.infotopics.com/features/tableau-extension/configuration/schemas/general-features/field-validation-regex.md) for the full story.

<figure><img src="https://3247237607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0gkOLIfzuEyMP2kvoT9o%2Fuploads%2Fgit-blob-d4e5609a8bf368125eb112f55e4958ed40df983f%2FScreenshot%202024-02-27%20at%203.22.01%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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://docs.infotopics.com/features/tableau-extension/configuration/schemas/field-formatting/single-line-text.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.
