> For the complete documentation index, see [llms.txt](https://docs.dapta.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapta.ai/dapta-forms/builder/question-types/text-and-slider-fields.md).

# Text & scale fields: Short text, Long text, Website, Slider

The four free-form question types in Dapta Forms: Short text, Long text, Website and Slider. Learn how placeholders work, how the Website field validates and cleans up addresses, and how to set up a s

These four types live in the **Text** group of the question gallery. Use **Short text** for a one-line answer, **Long text** for a paragraph, **Website** for a validated web address and **Slider** for a number on a scale. This page covers the settings each one offers and what respondents see.

***

**Step 1:** In the editor, click **Add question** in the toolbar. In the **Add a question** dialog, look at the **Text** group: **Short text** (One line), **Long text** (Paragraph), **Website** (Validated URL) and **Slider** (Rating scale). Click a tile to drop that question into your form.

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-a3e0ab6421552890363712fcd104ddf89cf85436%2Fforms-text-and-slider-fields-01-gallery-text-group.png?alt=media" alt="The Add a question dialog with the Text group highlighted: Short text, Long text, Website and Slider"><figcaption><p>The <strong>Text</strong> group of the question gallery.</p></figcaption></figure>

> **💡 Tip:** You can change the type later. In **Question settings**, open the **Question type** select and pick another type. The question keeps its place in the list.

***

## Short text and Long text

**Short text** shows a single-line input. **Long text** shows a multi-line box for longer answers. Both store exactly what the respondent typed.

**Step 2:** Select the question in the **Questions** list. Type the question on the canvas (**Type your question…**) and, if you want, a helper line (**Add a description (optional)**). In **Question settings**, fill in **Placeholder**: the ghost text shown inside the empty input. The canvas updates as you type.

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-bc925f12354e73acf9eefc19054f05a88947e58a%2Fforms-text-and-slider-fields-02-short-text-placeholder.png?alt=media" alt="A Short text question on the canvas with the Placeholder field highlighted in Question settings and the ghost text visible inside the input"><figcaption><p>The <strong>Placeholder</strong> appears inside the input on the canvas and in the live form.</p></figcaption></figure>

What you can set on both types:

| Setting             | Where             | What it does                                                                                                                         |
| ------------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **Required**        | Question settings | On by default. Respondents cannot continue with an empty answer.                                                                     |
| **Placeholder**     | Question settings | Ghost text shown inside the input while it is empty. Leave empty for none.                                                           |
| **Default answer**  | Advanced settings | Pre-fills the answer when the link carries no value for this field. A value in the URL always wins over it.                          |
| **Field key**       | Advanced settings | The name the answer is stored under, the URL parameter that prefills it, and the token you type between brackets to recall it later. |
| **Hidden question** | Advanced settings | Hides the question and fills it from a matching URL parameter.                                                                       |

Neither type can award points. If you need a scored answer, use a choice question or a slider.

> **💡 Tip:** Long text is a good place to ask an open question such as "Anything else we should know?". Because it is **Required** by default, turn **Required** off if you want it to be optional.

***

## Website

**Website** collects a web address and checks that it looks like one before the respondent can continue. Like Short text, it accepts a **Placeholder** in **Question settings**; leave it empty for none, or set something like `acme.com` to show the shape you expect.

What respondents experience:

* They can type a bare domain such as `acme.com` or `www.acme.com`, or a full address such as `https://acme.com/pricing`. Anything with a domain and a valid ending (`.com`, `.io`, `.co`, and so on) is accepted.
* When they leave the field, Dapta Forms adds `https://` automatically if it was missing. `acme.com` becomes `https://acme.com`, and that is the value stored in the submission and sent to integrations.
* If the text is not a valid address (for example `acme` with no ending, or an `ftp://` link), the form shows **Enter a valid website address.** and stays on the question.

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-d79a3907c4d65f6d6c2a93852378cc688e6e17d6%2Fforms-text-and-slider-fields-03-website-validation.png?alt=media" alt="The live form showing a Website question with the text acme typed in and the error Enter a valid website address."><figcaption><p>An incomplete address is refused. The respondent fixes it and continues.</p></figcaption></figure>

Website questions offer the same settings as Short text (**Required**, **Placeholder**, **Default answer**, **Field key**, **Hidden question**) and cannot award points.

***

## Slider

**Slider** asks for a number on a scale. Respondents drag a handle (or use the keyboard) and see the current value in a large pill above the track, with the minimum and maximum printed at the ends.

**Step 3:** Select the slider question. In **Question settings**, under **Slider**, set the four values:

| Setting     | Default | What it does                                                                                              |
| ----------- | ------- | --------------------------------------------------------------------------------------------------------- |
| **Min**     | 0       | The lowest value the handle can reach.                                                                    |
| **Max**     | 100     | The highest value the handle can reach.                                                                   |
| **Step**    | 1       | How much the value moves per notch. Use 10 for 0, 10, 20…; use 5 for 0, 5, 10…                            |
| **Default** | 50      | Where the handle starts. If the respondent never touches the slider, this is the value that is submitted. |

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-a7e405dd91bba50eb4a42537e08709a63045d5ff%2Fforms-text-and-slider-fields-04-slider-settings.png?alt=media" alt="A Slider question on the canvas with the Slider section highlighted in Question settings: Min 0, Max 500, Step 10, Default 50"><figcaption><p>The canvas previews the scale as you edit <strong>Min</strong>, <strong>Max</strong>, <strong>Step</strong> and <strong>Default</strong>.</p></figcaption></figure>

The editor warns you inline when the four values do not make sense together. Fix the value and the warning disappears:

| Warning                                                                                 | When it appears                                                                              |
| --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| **Default sits outside 0-500. Respondents will see 500 instead.**                       | **Default** is below **Min** or above **Max**. The live form clamps it to the nearest bound. |
| **Max is below Min. The slider has nothing to move along.**                             | **Max** is smaller than **Min**.                                                             |
| **Min and Max are the same, so the handle cannot move. Respondents can only answer 0.** | **Min** equals **Max**.                                                                      |
| **Step must be greater than 0. Browsers ignore anything else and move in steps of 1.**  | **Step** is 0 or negative.                                                                   |

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-c00953a6d6a983901a6f554cad7924d28d947776%2Fforms-text-and-slider-fields-05-slider-warning.png?alt=media" alt="The Slider settings with Default set to 600 and the warning Default sits outside 0-500. Respondents will see 500 instead."><figcaption><p>A default outside the range triggers a warning right under the fields.</p></figcaption></figure>

**Unit label.** To print a unit next to the number (for example `leads / month`), open **Advanced settings**, turn on **Vary the question by a field** under **Dynamic question** and fill in **Slider unit label** for each variant. The label is part of the dynamic question feature, so it can change with an earlier answer. See [Dynamic questions (variants)](/dapta-forms/builder/dynamic-questions.md).

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-7c1b9f8a4c9d78a9a4cdb7e903c8279754134018%2Fforms-text-and-slider-fields-06-public-slider.png?alt=media" alt="The live form showing a slider with the value 50 and the unit label leads / month in the pill above the track"><figcaption><p>What respondents see: the value pill with its unit label, the track and the 0 and 500 ends.</p></figcaption></figure>

More about sliders:

* **Scoring.** A slider can award points by range (for example 0 to 49 gives 0 points, 50 and up gives 10). Set the ranges in **Logic** > **Scoring**. See [Scoring](/dapta-forms/logic/scoring.md).
* **Logic.** Show, hide and branching rules on a slider use **Equal to**, **Greater than**, **Less than** and **Between**. See [Show & hide conditions](/dapta-forms/logic/conditions.md).
* **Prefill.** The **Prefill from URL** block in **Advanced settings** shows a ready-made example such as `?leads=5`. A value in the URL replaces the **Default**.

***

## What's next

* [Question settings](/dapta-forms/builder/question-settings.md): Required, Placeholder, Default answer, Field key, Hidden question and Ends the form, explained in one place.
* [Dynamic questions (variants)](/dapta-forms/builder/dynamic-questions.md): change the question title (and the slider unit label) based on an earlier answer.
* [Contact fields: Name, Email, Phone](/dapta-forms/builder/question-types/contact-fields.md) and [Choice fields: Single, Multiple, Dropdown](/dapta-forms/builder/question-types/choice-fields.md): the other question types.
* [Scoring](/dapta-forms/logic/scoring.md): award points from slider ranges.
* [Hidden fields & URL prefill](/dapta-forms/builder/hidden-fields-and-url-prefill.md): prefill any of these fields from the link.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.dapta.ai/dapta-forms/builder/question-types/text-and-slider-fields.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
