> 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/media-analytics/survey-builder-media-analytics.md).

# Survey Builder

Build surveys for a Media Analytics study: add question types, preview them, set logic rules, translate texts and copy surveys with the JSON editor.

This article describes how to build survey stimuli for a Media Analytics study in iMotions Online with the Survey Builder: adding and editing questions, previewing, translating, adding logic and copying surveys.

{% hint style="info" %}
This article applies to iMotions Online only. For 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

You open the Survey Builder from the **Study Builder** page with the **Edit survey** button of any survey stimulus you have added.

1. Add or select a survey stimulus in the **Study Builder**.
2. Click **Edit survey** to open the Survey Builder.

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

Adding iMotions Online Survey and opening Survey Builder

## Using the Designer tab

### Adding survey elements

Add survey elements (questions or images) on the **Designer** tab in one of these ways:

1. Using the list or icons menu on the left:
   * Click a question to add it to the end of the survey.
   * Drag a question to a specific place in the survey.
2. Using the central panel:
   * Click **Add Question** to add the default question (Single-Line Input) at the clicked location.
   * Click the **…** button and select a question from the menu that appears at the clicked location.

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

Survey Builder - Survey Elements and Settings

### Editing survey elements

You edit survey elements in the central panel and in the **Settings** panel on the right.

{% hint style="info" %}
The editing options and settings depend on the question type.
{% endhint %}

1. Add or select the survey element to edit.
2. Adjust the order of your survey as needed.
3. Use the central panel to adjust the question type or other available settings, for example the question text.
4. Use the **Settings** panel for more editing options, including the question or input type.

### Survey element types

* **Multiple Choice** - Respondents select one response from a list of options (radio buttons).
* **Checkbox** - Respondents select any number of checkboxes from the available options.
* **Rating Scale** - Respondents select one rating from a range of scale values (ordered buttons).
* **Image Picker** - Select an image to display to respondents in place of a question (no input or response).
* **Ranking** - Respondents indicate their order of preference by dragging and dropping options in a list.
* **Slider** - Respondents drag a slider on a number line to indicate their response.
* **Dropdown** - Respondents select one response from a dropdown list. It is similar to Multiple Choice but takes up less screen space.

Text input types:

* **Long Text** - Respondents can enter multiple lines of text, compared to a single line for other text inputs.
* **Single-Line Input** - Respondents enter a response in a single field. Responses can be formatted for specific inputs, such as numbers, dates, times, email addresses, URLs and other options.
* **Multiple Textboxes** - Respondents type multiple single-line text responses (a list of single-line text inputs).

Response matrix question types:

* **Single-Select Matrix** - Respondents select one response in each row of a matrix (grid) of response options (radio buttons).
* **Multiple-Select Matrix** - Respondents select one response from a list of responses presented in a matrix (grid) of response prompts.

### Saving the survey

Once you have created the survey on the **Designer** tab, save the survey stimulus to your study.

1. Click **Save and close** to save your survey stimulus.
2. To return to the Survey Builder and continue editing, select the survey stimulus and click **Edit survey**.

{% hint style="info" %}
You can only edit stimuli in a study that has not started data collection and does not contain respondents. To make new edits after that, create a new study.
{% endhint %}

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

## Preview tab

Once you have created the survey on the **Designer** tab, you can view it on the **Preview** tab.

The **Preview** tab shows the survey with the survey elements and settings that are stored at the moment.

1. Create a survey with at least one survey element (a question or an image) on the **Designer** tab.
2. Click the **Preview** tab.
3. Check that the survey and its workflow appear as expected.
4. Continue editing the survey as needed.
5. When ready, click **Save and close** to save the survey to the study.

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

Survey Builder - Preview, Themes, Logic, and JSON Editor

## Translations tab

If your study offers more than one language under [Language options](https://help.imotions.com/online/media-analytics/data-collection-media-analytics.md#language-options) on the Data Collection page, you can translate the survey so that respondents see it in the language they use for the study. Without translations, respondents see the survey in the language it was written in, while the rest of the study interface is translated.

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

1. Click the **Translations** tab.
2. In the **Languages** list in the **Settings** panel on the right, check the languages you want to translate the survey into. Only the languages supported by iMotions Online can be added.
3. Type the translation for each text in the column of that language. Texts left empty fall back to the Default column when the survey is shown to a respondent.
4. When ready, click **Save and close** to save the survey to the study.

In Chrome and Edge versions with built-in machine translation, the **Settings** panel also offers an **Auto-translate** button. It translates all empty cells from the Default column into the added languages using the machine translation built into the browser, which runs on your own device. Existing translations are not overwritten. Auto-translate is only available when the survey was written in English. Always check the translations before using them. Other browsers show a notice that machine translation is not available.

The standard survey buttons, like "Next" and "Complete", are translated automatically in all supported languages, so you do not need to add them.

The Data Collection page warns you when a survey has texts without a translation for one of the offered languages. An information message lists the languages and the number of texts that fall back to the Default column. A warning is shown instead when a text has no fallback at all, in which case respondents would see the question name or choice value. This can happen when the survey was written with the survey language in the Designer settings set to another language than the default; add the missing text in the Default column to fix it.

Respondents' answers to choice questions are stored as the choice values, which are the same in all languages, so answers from respondents using different languages can be compared in the survey results.

## Other Survey Builder tabs

The Survey Builder has six tabs. The **Designer** tab is always required and the **Preview** tab is generally required. The **Themes**, **Logic**, **Translations** and **JSON Editor** tabs provide optional settings and features.

1. **Designer** (the main Survey Builder tab) - Add and edit survey questions.
2. **Preview** - View the survey that is loaded in the Survey Builder.
3. **Themes** - Optional visual and display settings for the survey (General, Header, Background, Appearance).
4. **Logic** - Optional rules that control the survey logic (for example the order based on a response).
5. **Translations** - Optional translations of the survey texts for studies offering more than one language (see [Translations tab](#translations-tab)).
6. **JSON Editor** - View and edit the survey in JSON format (for example for batch edits or copying a survey).

### Logic tab

The **Logic** tab shows the rules that control the survey flow based on respondent input, that is, their responses to the survey.

Each rule performs the selected **Action** when its **Condition(s)** are met. A condition consists of a **Question/Response** and a **Logical Operation**.

![A new rule on the Logic tab of the SurveyJS Survey Creator, with callouts pointing to the question name, logical operation and answer fields](https://surveyjs.io/survey-creator/documentation/images/survey-creator-logic-tab-add-new-rule.png)

### Adding logic rules

Click **Add New Rule** at the bottom of the **Logic** tab to show editors for specifying conditions and selecting the actions to perform when the conditions are met.

1. Click **Add New Rule** or select an existing rule.
2. Select the **Question** the rule applies to. The logic options vary by question type.
3. Select the **Logical Operation** (the "If" statement) from the dropdown menu to the right of the question, for example **Equals** or **Greater than**.
4. Specify the **Answer** the rule applies to. Some logical operations, such as **Empty** or **Not empty**, do not need an answer.
5. Add more conditions as needed. If the rule needs more than one condition, click **Add Condition** and combine the conditions with **And** or **Or**.
6. Specify the **Action** (the "Then" clause) by selecting one of the actions in the dropdown menu, described in [Action menu options](#action-menu-options).
7. Click any rule to edit its logic as needed.
8. Click **Done** to save your changes.

You can also click **Manual Entry** to add and edit rules in a text editor. Rules and conditions are converted between the **Logic** tab (graphical interface) and **Manual Entry** (text for logical expressions).

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

Adding Survey Logic

### Action menu options

The action options vary with the questions and pages that have been added to the survey.

* **Show (Hide) page** - Makes the selected page visible. To hide the page, invert the logic of your condition.
* **Enable (disable) page** - Makes the selected page editable. To make the page read-only, invert the logic of your condition.
* **Show (Hide) question** - Makes the selected question visible. To hide the question, invert the logic of your condition.
* **Enable (disable) question** - Makes the selected question editable. To make the question read-only, invert the logic of your condition.
* **Make question required** - Requires an answer for the selected question.
* **Complete survey** - Completes (ends) the survey.
* **Set answer** - Sets a specified answer to the selected question.
* **Copy answer** - Copies the answer from the selected question to a target question.
* **Skip to question** - Moves the survey to the selected question.
* **Run expression** - Runs a custom expression on the selected question.
* **Set the "Survey Complete" page markup** - Specifies custom HTML markup for the Survey Complete page.

![The action dropdown menu on the Logic tab of the Survey Builder, listing actions from Show/hide page to Set "Thank You" page markup](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-969676d469af61f7331d73584fac512b08ed8bfc%2F38ea30cdc8_image-YOMYCKLG.webp?alt=media)

### Rule filters

To search the rules you have created in the survey:

* Use the question filter to find the rules for a question.
* Use the action type filter to find the rules with an action type.

![The question filter and action type filter on the Logic tab of the SurveyJS Survey Creator, with the question filter list open](https://surveyjs.io/survey-creator/documentation/images/survey-creator-logic-tab-filter-rules.png)

### JSON Editor tab

The **JSON Editor** tab lets you view and edit your survey in JSON format (text), converted from the survey elements and settings in the **Designer** tab.

* Editing requires knowledge of the JSON format. In most cases, you do not need to change the JSON object on this tab.
* The JSON Editor makes some tasks easier, for example copying and pasting surveys or batch text edits.

![The JSON Editor tab of the Survey Builder showing the JSON for a survey with one text question](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 surveys with the JSON Editor

1. Create or select the template survey stimulus to copy.
2. Go to the **JSON Editor** tab of the Survey Builder.
3. Select and copy the text in the JSON Editor for the survey (or for the survey elements).
4. Close the Survey Builder (save changes as needed) and return to the **Study Builder**.
5. Create or select the destination survey stimulus.
6. Click **Edit survey** to open the Survey Builder.
7. Go to the **JSON Editor** tab.
8. Paste the text from the template survey into the JSON Editor.
9. Edit as needed.
10. Click **Save and close** when you have finished editing.

{% embed url="<https://files.imotions.com/hc_articles/videos/imotions-online-survey-editor-copy.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/media-analytics/survey-builder-media-analytics.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.
