# Questions

<figure><img src="/files/sBh3ujyVegOioXKgojxK" alt=""><figcaption></figcaption></figure>

Questions are used to collect specific information from responders within a step and store their answers in variables. Formsort provides a wide range of question components to accommodate different needs—everything from single or multiple-choice options to specialized fields for capturing addresses and more.

These question components can be easily reordered by dragging and dropping them within a step, or even between different steps and groups. Just like steps and groups, questions can also be conditionally rendered based on responder input.

Check out the sub-sections below to explore the different types of questions available and determine which is best suited for your flow’s objectives.

{% hint style="info" %}
Need something more custom? You can embed your own questions using an **iframe** question.
{% endhint %}

***

### General Settings

<div align="left"><figure><img src="/files/eYsNMmhD6MVfl5fqGZHu" alt=""><figcaption></figcaption></figure></div>

While some settings are specific to individual question types, the following options are available for all questions:

#### Question label

A text field used to prompt the responder. This label can be edited directly on the question component or via the settings menu.

#### Variable

The name assigned to the answer, as it will appear in your answer payload.\
By default, this mirrors the Question Label, but you can edit it independently.\
Example answer format:

```json
answers: {
    variable_name: variable_value
}
```

#### Readable description

An internal-only field to help your team understand the purpose of the question.\
This is not shown to responders but can be included in the metadata of answer payloads if enabled in your integration settings.&#x20;

Example payload snippet:

<pre class="language-json"><code class="lang-json"><strong>"answers": {
</strong>  "variable_name": "variable_value"
}
// Metadata fields
"descriptions": {
  "variable_name": "A Boolean T/F question"
}
"responder_uuid": "debe557f-16bc-4370-9e14-cc238c77879b",
"flow_label": "flow",
"variant_label": "main",
"variant_uuid": "bf5efd0a-2869-44af-91a2-c0128b9ecf6c",
"finalized": false,
"created_at": "2023-10-05T21:47:49+00:00"
</code></pre>

#### Data classification

Tags the question as collecting personally identifiable information (PII) or another sensitive data type.

#### Question ID

Assign an HTML `id` attribute to the question.\
Useful for targeting with custom CSS.

#### Has info Text?&#x20;

Provide additional context without cluttering the UI. Enable **Has info text?** to display a tooltip or modal alongside the question.\
You can choose between text links or an icon-based trigger.

{% hint style="warning" %}
Info text is not supported for Select Button components.
{% endhint %}

#### Allow Multiple Answers

Enable this option to let responders submit more than one answer to a question.

Supported question types:

* Date
* Email
* Number
* Phone
* Text
* Select

When enabled, answers are stored as an array:

```
{
  "pets": ["cat", "dog", "bird"],
}
```

A **+ Add** button will appear after the first input, allowing responders to enter additional values.


---

# Agent Instructions: 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:

```
GET https://docs.formsort.com/adding-questions-and-content/question-reference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
