> 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/lab/study-setup-and-design/stimuli/survey/advanced-survey-designer.md).

# Advanced Survey Designer

Build survey stimuli in iMotions Lab with the Advanced Survey Designer: question types, logic rules, themes, JSON import and response export.

*iMotions Advanced Surveys support additional features that facilitate survey design and workflow. This article provides information about these features and the Advanced Survey Designer (Available in iMotions 10.1.5 or newer).*

#### Opening the Advanced Survey Designer

Open the Advanced Survey Designer from the [iMotions Study Builder](https://help.imotions.com/lab/getting-started/using-the-imotions-study-builder.md) by clicking (or clicking-and-dragging) **Advanced survey**. This opens to the **Designer** page, where surveys are created by adding questions and adjusting settings.

You can return to the Advanced Survey Designer from the Study Builder by clicking on **Edit stimuli** (Note: You can continue editing the survey until data has been collected, i.e. you can not edit once respondent data has been collected with the survey).

## Advanced Survey Designer Window

The Designer Tab provides the primary interface for adding and editing surveys. The additional tabs provide optional functions and features. The Preview tab is often used, while the other tabs provide more advanced control and editing options.

**Designer Tab** - Add/Edit survey questions and settings

1. **Add Questions** with the menu on the Left (or button/menu in the center panel)
2. **Adjust Order** with central panel (clicking-and-dragging)
3. **Adjust Settings** for the survey and specific questions with menus on the Right
4. **Save** survey to the study with the button Top-Right

**Additional Tabs** along the Top:

* **Preview** - Displays survey as it will appear during data collection
* **Themes** - Appearance settings for the survey
* **Logic** - Add/Edit survey logic to control survey flow based on survey responses
* **JSON Editor** - View/Edit surveys in JSON format (text/code for survey in Designer)

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

iMotions Advanced Survey Designer - Add/Edit Survey Questions and Settings

### Creating Advanced Surveys

1. In the iMotions Study Builder, click on **Advanced survey** to create the stimulus and open the Advanced Survey Designer.
2. **Add a survey question to create the survey**. Click a question type in the toolbox on the left, or click **Add Question** in the middle. The **...** button next to **Add Question** lists the question types.

   ![The empty Advanced survey designer, with the question types on the left and Add Question in the middle](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-ddeb0c33191db11d8117225f63865dc6576877ed%2Flab_survey_advanced-designer_empty.png?alt=media)
3. **Select Question Type and Edit Properties for the Survey, Page, and Question(s)** (as needed). The selected question has a toolbar for its question type, input type, **Duplicate**, **Required** and **Delete**. The panel on the right has the rest of its properties.

   ![A Single-Line Input question selected on page 1, with its properties on the right](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-9f882cb5887b48c983a5e8d4f0a07e9384f8869e%2Flab_survey_advanced-designer_question-selected.png?alt=media)

   1. Page/Question Name does not appear in the survey - since it is only a label for use in the study builder
   2. Title appears in the survey with larger font (as set in Survey, Page, and Question properties)
   3. Description appears in smaller text beneath the title (as set in Survey, Page, and Question properties)
   4. **Question Properties vary with Question Type** - Information is provided by hovering over the ‘?’ icon next to each property.
   5. Add questions to additional pages - to have them appear on different pages (as needed). Each page has its own **Add Question** button, and an empty page follows the last one.
   6. Click-and-drag questions to edit order (as needed), by the handle at the top of the question.
4. Use **Preview** tab to view how the survey will appear during data collection.
5. Click the **Save** button (disk icon) - Note: If the window is closed without saving, a prompt appears to Save or Discard the survey.

### Survey Questions (Input/Response Types)

* **Multiple Choice** - Respondents select one response from list of available options (radio buttons).
* **Checkbox** - Respondents select any number of checkboxes from available options.
* **Rating Scale** - Respondents select one rating from a range of scalar values (ordered buttons).
* **Image Picker** - Select an image to display to respondents in place of a question (no input/response)
* **Ranking** - Respondents indicate their order of preference for response options by dragging and dropping options from a list.
* **Slider** - Respondents drag a slider on a number line to indicate their response.
* **Dropdown** - Respondents select one response from a drop-down list (similar to multiple choice response but occupies less screen space with the drop-down interface).

Text Input Types:

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

Response Matrix question types:

* **Single-Select Matrix** - Respondents select one response in each row from 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.

### Logic

The Logic page allows you to add rules and define response-based logic to control survey flow.

1. Click **Add New Rule** to bring up logic options
2. Select logic that applies
   1. Click **Select** to choose the question where the rule will apply
   2. **Define logic -** Depending on the selected question, different options will be available.
      1. Defining a response or range of response where the rule applies
      2. Click **Add Condition** to add further rules (as needed)
   3. Click **Select action** to choose from the list of actions that can apply (when the rule is met).
      1. Survey actions can be used to redirect respondents to specific questions, pages, or the end of the survey.
      2. Survey actions can also modify other responses or questions (e.g. whether they appear in the survey)
3. Click **Done** to add the rule to the survey

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

Advanced Survey Logic Tab - Adding survey response logic

### JSON Editor

The JSON Editor page provides a text editor that shows the JSON file/format for the survey (which is translated into the survey stimulus). The JSON Editor can facilitate the use of survey templates or batch design (i.e. copy/pasting survey components). Please note: JSON text must be compatible with iMotions and in required format/files. Edits should be tested and confirmed.

#### Built-in Functions

* Click **Import** to load an iMotions survey JSON file (e.g. created with the JSON Editor export).
* Click **Export** to save JSON file for the survey (File name: *survey.json*).
* Click **Copy** to copy all of the text in the JSON Editor.

#### Example Workflows with JSON Editor

1. Create ‘template’ survey with the Advanced Survey Designer.
2. Export the survey JSON file OR copy the text from JSON Editor.
3. Create/Edit a new survey and import the JSON file OR paste the text into JSON Editor.
4. Edit survey in the Designer or JSON Editor (as needed).
5. Save the new survey to the study.

{% embed url="<https://files.imotions.com/hc_articles/videos/lab-advance-survey-json-editor-copypaste.mp4>" %}

Advanced Survey JSON Editor Tab

## Exporting Survey Responses

Survey responses can be exported into a .TXT file that contains survey response data.

Response data is provided for each respondent (rows) and question (columns). Additional information can be found in this article - [Export: Survey data](https://help.imotions.com/lab/exports/export-survey-data.md).

#### To export survey responses:

1. Create or select an analysis.
2. Select Export panel.
3. Select **Full Survey response**.
4. Click Export button to create file.

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-8f90dfa9d92cee50350c7a4c21dcbe062e09f5f6%2Flab_export_built-in-processing_full-survey-response.png?alt=media" alt="The Export panel of an analysis with Full Survey response and the Export button marked"><figcaption><p>Steps for Exporting Survey Responses</p></figcaption></figure>

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7ab0517fef25d04b25de8627287392d494426af1%2F91da0dc762_image-SVTRPLET.webp?alt=media" alt=""><figcaption><p>Alternative Export Steps: Right-click on analysis and select Full Survey Response</p></figcaption></figure>

## Attachments

**Advanced survey preview and other tabs (video)**

{% embed url="<https://files.imotions.com/hc_articles/videos/advanced-survey-preview-and-other-tabs.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/lab/study-setup-and-design/stimuli/survey/advanced-survey-designer.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.
