Creating a Survey

Learn how to create surveys, from defining the scope and designing questions to using advanced fields and templates. Learn how to make questions mandatory, add links and descriptions, and import/export surveys.

Introduction

By default, surveys can be created by users with admin rights. However, admins can configure permissions to allow non-admins to create and run the surveys. To learn how to configure permission, see Granting Survey Creation Permissions to Non-Admin Users.

To start creating a survey, follow these steps:

  1. Navigate to the Collaboration tab.
  2. In the left side pane, under Surveys, select Manage Surveys.
  3. Click New Survey.
Creating a New Survey

Creating a New Survey

Clicking on New Survey opens the survey editor, where you can define the survey scope by selecting relevant fact sheets, design the survey form by forming questions, preview the designed form, and curate recipients before sending it out. At the top of the screen, the navigation bar features five tabs: Scope, Design, Preview, Share, and Insights, each representing essential stages of the user journey and providing you the structured guidance.

On the left side of the navigation bar, you can name the survey by clicking on Untitled Survey.

👍

Auto Save

Once you start creating a survey, until it goes live, your progress is automatically saved as a draft.

Defining the Scope of the Survey

Define the scope of the survey by selecting the relevant fact sheets that you want to include in the survey. To do so, follow these steps:

  1. Click on Open Fact Sheet Filters
  2. Select the needed fact sheets or apply filters to narrow down the scope
  3. Click Use Fact Sheet Filter to include the filtered list, or click Use Selected Fact Sheets to select only the needed fact sheets from the list.
  4. The selected fact sheets are now displayed as a list. If you need to modify the list of selected fact sheets, you can do so by clicking on change at the top.
  5. Click Next to finish.

You can also make the survey's scope dynamic or static using the toggle at the top of the list.

  • Dynamic: Fact sheets meeting the specified filters will be included in the survey as long as the survey is in a running status. Conversely, any fact sheets that do not meet the applied filters will be excluded. For example, if a lifecycle filter is applied, new fact sheets are added or removed from the survey as their lifecycle changes The survey will also continuously monitor changes in fact sheet subscriptions. If a subscription is added to a fact sheet associated with an ongoing survey, the subscriber will be invited to participate.
  • Static: The survey scope is restricted to the fact sheets shown in the list. No new fact sheets will be added/ removed from the survey, regardless of any future changes to fact sheets or subscriptions.

Designing the Survey

After defining the scope, you are directed to the Design tab. Designing a survey involves forming the questions and structuring the overall format to gather the necessary information effectively. Here, you have two options for designing your survey:

(a) You can start from scratch and design a new survey.

(b) Alternatively, you can import an existing survey from your workspace or select a survey template available in the LeanIX store to modify and use.

Designing the Survey From Scratch

In the Design tab, you can easily design the survey form by dragging and dropping different types of input fields from the left pane onto the survey editor. There are three primary categories of input fields available for designing survey questions: Fact sheet fields, basic fields, and conditional fields.

Fact Sheet Fields

This type of input field is directly linked to a specific field of a fact sheet. Any responses provided in these fields are automatically integrated into the corresponding fact sheet’s field. You can include different fact sheet fields, such as relations, tag groups, and subscriptions. However, fields on relations are not yet supported. Tags are shown as a dropdown if they are single-select and as a multi-tag picker if they are multi-select.

Adding Fact Sheet Fields to the Survey

Adding Fact Sheet Fields to the Survey

Basic Fields

From this category, you can create questions that accept various types of inputs, including text, number, date, single-select, and multi-select answers. These questions are independent and are not linked to any specific fact sheet fields; thus, they do not update any fact sheets.

The Radio element enables you to create single-select questions, where respondents can choose only one answer. The Checkbox element allows you to create multi-select questions, where respondents can choose multiple answers. Additionally, the Question group element allows you to organize and group multiple sub-questions under a single category.

Advanced Fields

The advanced field allows you to incorporate conditional questions and calculated fields into the surveys.

Conditional questions: They allow you to display or skip a question based on a response given earlier. To set up a rule, select the question to which the rule should apply and then define the specific conditions. For example, you can create a conditional question like "Are you sure you are the owner of the application?" Based on the response, you can choose whether follow-up questions should be displayed or skipped.

To make a question conditional, follow these steps:

  1. From the question’s menu in the top right corner, select Manage conditionality.
  2. Define the condition by clicking Add a new condition.
  3. Click Save to apply the condition.
Making a Question Conditional

Making a Question Conditional

Calculated fields: They enable you to quantify survey results by deriving a specific score by aggregating or quantifying answers provided in other questions. This functionality accepts standard JavaScript as input and is designed to return an integer. Here's an example to illustrate:

// Enter any JavaScript code to calculate a value based on the user's responses
// saved in the 'answers' object and return that value at the end. The response to
// any single questions can be accessed either by the question's index or label text.
// (Hidden questions and Fact Sheet questions are always present in the array with the
// value 'null'. Questions groups have no impact on the answers array whatsoever.)
// The following example is based on the availability demo survey:


var score = 0;
score += answers[0] === 'Many outages' ? 10 : 0;
score += 5 - answers['Which channels of communication did you use to inform your users about availability issues?'].length;
score += /crucial customer/i.test(answers[4]) ? 50 : 0;
return 'Overall score: ' + score;

Adding Links and Descriptions

While creating survey questions for any of the input fields, you can also insert links by typing the display text in square brackets ‘[...]’ and typing the link right after it inside parenthesis '(...)'.

Inserting Link in Survey Questions

Inserting Link in Survey Questions

Inserted Link Displayed in the Survey Form.

Inserted Link Displayed in the Survey Form.

The descriptive text field provides extra information or context for your questions. It supports clickable URLs and is limited to 250 characters. Providing a description helps respondents understand the questions better and increases the chances of getting accurate answers. It also ensures a clear separation between the survey question and its additional description. Similarly, you can also add comments to single-select and multi-select answers to provide more clarity for the survey responders.

To add a description for a question, select the Add descriptive text checkbox from the question’s menu in the top right corner and write the description in the field that appears.

Making a Question Mandatory

You can make a question mandatory by toggling the Mandatory switch on at the top right of the question. When a question is mandatory, respondents must answer it before submitting the survey. This ensures that critical information or key insights are collected from all participants, maintaining the integrity and completeness of the data, which is vital to the survey's objectives.

Making a Question Mandatory

Making a Question Mandatory

Deleting Questions

You can delete an individual question by clicking the delete icon at the top right of the question. To clear all questions in the survey, click the menu icon at the top right of the survey and select Clear Questions.

Designing the Survey from Existing Survey and Survey Template

Importing and Exporting Survey

Instead of designing a survey from scratch, to save time and simplify the survey creation, you can import an existing survey from various sources:

  1. Import an existing survey from the workspace.
  2. Use a survey template from the LeanIX store.
  3. Import a previously exported survey in JSON format or directly paste the JSON code during import.

To import a survey, do the following:

  1. Click Use Template in the top right corner of the survey editor. This action opens an overlay with options for importing.
  2. In the overlay, choose whether to import from the workspace, LeanIX store, or a saved survey file.
  3. Click Import.

🚧

Importing from the LeanIX Store

Before you can choose templates from the drop-down list, you need to import them from the LeanIX store. To do this, click the Browse LeanIX Store button in the import overlay.

Similarly, you can export a survey as a JSON file for future use or to use in another workspace, by selecting Export from the menu next to the Use Template button.

Importing and Exporting Surveys

Importing and Exporting Surveys