> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/online/behavioral-research/survey-builder-behavioral-research-online.md).

# Survey Builder

Build iMotions Online surveys with the survey builder: add question types, set logic rules, translate texts and copy surveys with the JSON editor.

The Survey Builder creates the built-in survey stimuli in iMotions Online. This article covers adding and editing questions, logic rules, translations and copying surveys with the JSON Editor.

{% hint style="info" %}
This article is about iMotions Online. For surveys in iMotions Lab, see [Survey stimuli in iMotions Lab](https://help.imotions.com/lab/study-setup-and-design/stimuli/survey.md).
{% endhint %}

## Opening the Survey Builder

1. In the [Study Builder](https://help.imotions.com/online/behavioral-research/study-builder-behavioral-research-online.md), add or select a **Survey** stimulus.
2. Click **Edit survey**.

This video shows how to add a survey and open the Survey Builder:

{% embed url="<https://files.imotions.com/hc_articles/videos/opening-survey-builder-2.mp4>" %}

The Survey Builder has six tabs:

| Tab                                   | Use it to                                                                                     |
| ------------------------------------- | --------------------------------------------------------------------------------------------- |
| [**Designer**](#designer-tab)         | Add and edit questions. Required.                                                             |
| [**Preview**](#preview-tab)           | See the survey as respondents see it.                                                         |
| **Themes**                            | Change the look of the survey: general, header, background and appearance settings. Optional. |
| [**Logic**](#logic-tab)               | Add rules, such as showing a question depending on an earlier answer. Optional.               |
| [**Translations**](#translations-tab) | Translate the survey for studies offered in more than one language. Optional.                 |
| [**JSON Editor**](#json-editor-tab)   | Edit the survey as JSON, for example to copy a survey or make many edits at once. Optional.   |

## Designer tab

### Adding questions

Add questions or images in one of these ways:

* **From the list on the left:** click a question type to add it to the end of the survey, or drag it to a specific place.
* **From the central panel:** click **Add Question** to add the default question type (Single-Line Input) at that place, or click **…** to choose another type.

This video shows how to add and edit survey elements:

{% embed url="<https://files.imotions.com/hc_articles/videos/adding-and-editing-survey-elements.mp4>" %}

### Editing questions

1. Select the question you want to edit.
2. Drag it to change its position in the survey.
3. Edit the question text and basic options directly in the central panel.
4. Use the **Settings** panel on the right for more options, including the question and input type.

The available options depend on the question type.

### Question types

In choice questions, respondents choose from options:

| Type                | Respondents…                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| **Multiple Choice** | select one option (radio buttons).                                                   |
| **Checkbox**        | select any number of options.                                                        |
| **Dropdown**        | select one option from a drop-down list. Like Multiple Choice, but takes less space. |
| **Rating Scale**    | select one value on a scale (ordered buttons).                                       |
| **Slider**          | drag a slider along a number line.                                                   |
| **Ranking**         | drag options into their order of preference.                                         |
| **Image Picker**    | see an image instead of a question. No response is collected.                        |

In text questions, respondents type their answer:

| Type                   | Respondents…                                                                                                  |
| ---------------------- | ------------------------------------------------------------------------------------------------------------- |
| **Single-Line Input**  | type one line. The input can be restricted to numbers, dates, times, email addresses, URLs and other formats. |
| **Long Text**          | type several lines.                                                                                           |
| **Multiple Textboxes** | type in several single-line fields.                                                                           |

In matrix questions, respondents answer in a grid:

| Type                       | Respondents…                                             |
| -------------------------- | -------------------------------------------------------- |
| **Single-Select Matrix**   | select one option in each row of a grid (radio buttons). |
| **Multiple-Select Matrix** | select options in a grid of prompts and responses.       |

### Saving the survey

Click **Save and close** to save the survey to the study. To continue editing later, select the survey stimulus and click **Edit survey**.

{% hint style="warning" %}
You can only edit a survey while the study has not started data collection and has no respondents. To make changes after that, create a new study.
{% endhint %}

{% embed url="<https://files.imotions.com/hc_articles/videos/saving-imotions-online-survey.mp4>" %}

## Preview tab

The Preview tab shows the survey with its current questions and settings, so you can check the content and flow before saving.

1. Add at least one question or image in the Designer tab.
2. Open the **Preview** tab and go through the survey.
3. Go back to the Designer tab to make changes as needed.
4. Click **Save and close** when you are done.

This video shows the Preview, Themes, Logic and JSON Editor tabs:

{% embed url="<https://files.imotions.com/hc_articles/videos/survey-builder-tabs.mp4>" %}

## Translations tab

If the study offers more than one language (see [Language options](https://help.imotions.com/online/behavioral-research/data-collection-behavioral-research-online.md#language-options)), you can translate the survey so respondents see it in the language they use for the study. Without translations, the rest of the study is translated but the survey stays in the language it was written in.

The Translations tab lists every text in the survey (question titles, choices, placeholders and so on) in a table with one column per language. The **Default** column holds the texts as written in the Designer.

1. Open the **Translations** tab.
2. In the **Languages** list in the Settings panel, check the languages to translate into. Only languages supported by iMotions Online can be added.
3. Type the translations in the column for each language. Empty cells fall back to the Default column.
4. Click **Save and close**.

Standard survey buttons such as "Next" and "Complete" are translated automatically.

### Auto-translate

In versions of Chrome and Edge with built-in translation, the Settings panel has an **Auto-translate** button. It fills all empty cells by machine-translating the Default column with the translation built into the browser, which runs on your own device. Existing translations are kept. Auto-translate only works for surveys written in English, and other browsers show a notice that it is not available.

{% hint style="warning" %}
Always review machine translations before you use them.
{% endhint %}

### Missing translations

The Data Collection page tells you when a survey has texts without a translation for an offered language:

* An **information message** lists the languages and the number of texts that fall back to the Default column.
* A **warning** means a text has no fallback at all, so respondents would see the question name or choice value instead. This happens when the survey language in the Designer settings was set to a language other than the default. Fill in the missing text in the Default column to fix it.

Answers to choice questions are stored as choice values, which are the same in every language. This means you can compare answers from respondents who used different languages.

## Logic tab

The Logic tab holds rules that change the survey flow based on respondents' answers. Each rule performs an **action** when its **conditions** are met.

![Survey Creator - Add new logical rule](https://surveyjs.io/survey-creator/documentation/images/survey-creator-logic-tab-add-new-rule.png)

### Adding a rule

1. Click **Add New Rule** at the bottom of the tab, or select an existing rule to edit it.
2. Select the **question** the rule depends on. The available options depend on the question type.
3. Select a **logical operation**, such as "Equals" or "Greater than".
4. Enter the **answer** to compare with. Some operations, such as "Empty" and "Not empty", don't need one.
5. To combine conditions, click **Add Condition** and choose **And** or **Or**.
6. Select the **action** to perform. See the list below.
7. Click **Done**.

To write rules as text instead, click **Manual Entry**. Rules convert back and forth between the visual editor and the text form.

This video shows how to add survey logic:

{% embed url="<https://files.imotions.com/hc_articles/videos/imotions-online-survey-logic.mp4>" %}

### Actions

| Action                                    | What it does                                                                             |
| ----------------------------------------- | ---------------------------------------------------------------------------------------- |
| **Show page** / **Show question**         | Makes the page or question visible. To hide it instead, invert the condition.            |
| **Enable page** / **Enable question**     | Makes the page or question editable. To make it read-only instead, invert the condition. |
| **Make question required**                | Requires an answer to the question.                                                      |
| **Complete survey**                       | Ends the survey.                                                                         |
| **Set answer**                            | Sets a specific answer on the question.                                                  |
| **Copy answer**                           | Copies the answer from one question to another.                                          |
| **Skip to question**                      | Jumps to the selected question.                                                          |
| **Run expression**                        | Runs a custom expression on the question.                                                |
| **Set the "Survey Complete" page markup** | Sets custom HTML for the page shown when the survey is complete.                         |

### Filtering rules

To find rules in a long survey, use the **question** filter to show the rules that depend on a question, or the **action type** filter to show rules with a certain action.

![Survey Creator - Filter rules in the Logic tab](https://surveyjs.io/survey-creator/documentation/images/survey-creator-logic-tab-filter-rules.png)

## JSON Editor tab

The JSON Editor shows the whole survey as JSON text. You rarely need it, and editing requires knowledge of JSON, but it is useful for copying surveys and making many text edits at once.

![The JSON Editor tab of the Survey Builder showing a survey with one text question as JSON](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-defa68ff56d09e002692b6bed8dd67f22c834f3d%2F9aade68c59_image-QDI9LJFE.webp?alt=media)

### Copying a survey

1. Open the survey you want to copy in the Survey Builder and go to the **JSON Editor** tab.
2. Copy the JSON of the whole survey, or of the questions you want.
3. Close the Survey Builder and return to the Study Builder.
4. Add or select the survey you want to copy into, and click **Edit survey**.
5. Go to the **JSON Editor** tab and paste the JSON.
6. Make any other edits and click **Save and close**.

{% embed url="<https://files.imotions.com/hc_articles/videos/imotions-online-survey-editor-copy.mp4>" %}

## Videos

### Survey preview

{% embed url="<https://files.imotions.com/hc_articles/videos/imonline-survey-preview.mp4>" %}


---

# 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.imotions.com/online/behavioral-research/survey-builder-behavioral-research-online.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.
