There are several ways to create options sets for answer choices, rows, and columns: inline lists, set lists, derived lists, and sheets.
- Inline lists: Embedded directly in the question or table widget.
- Set lists: Defined independently in the survey source.
- Derived lists: Pulled from previous questions or tables.
- Sheets: External files linked to the survey, used instead of a list.
Inline lists
An inline list is a set of options embedded in the question.
1. What is your favorite diet cola? type: radio 1. Diet Coke 2. Diet Pepsi 3. Diet RC Cola 97. Other {autoother: y; size: 10} 2. How often do you do the following? type: radio table 1. Never 2. Seldom 3. Often 4. Daily rows: 1. Go for a walk 2. Read a book 3. Watch TV 4. Cook a meal
Usage
Best for single-use lists, as it's simple to program and aligns closely with survey documents. Inline lists can also be referenced later (e.g., optsfrom: Q1.options
). They also are preferred when programming in IntelliBuilder.
For more information on reusing inline lists, see Referencing and reusing lists and Derived lists.
Set lists
A set list
is created independently in the survey source.
set list: DIET_SODAS
1. Diet Coke
2. Diet Pepsi
3. Diet RC Cola
1. What is your favorite diet cola?
type: radio
optsfrom: DIET_SODAS
Usage
Ideal for reusable lists or lists with element decorators or option data decorators attached. However, larger or more complex sets are better managed with sheets.
Derived lists
A derived list is a set of options that is initially listed inline with a question, then referenced/pulled in other questions. Like a set list
, when a derived list is used, all options are pulled into the question or table (unless otherwise specified).
1. Which of the following items do you typically buy when shopping? type: checkbox 1. Apples 2. Milk 3. Lunch meat 4. Bread 5. Chocolate 2. Which of the following items do you enjoy most? type: radio optsfrom: Q1.options 3. How frequently do you buy these items? type: radio table 1. Never 2. Rarely 3. Occasionally 4. Frequently rowsfrom: Q1.options
Usage
Great for reusing sets of options. Derived lists can be transformed (e.g., question options later reused as table rows or columns) and also support decorators like explain
or text
.
Sheets
A sheet is a separate document hosted within your survey and can be used anywhere a list can be used.
1. What is your favorite diet cola?
type: radio
optsfrom: surveyid.diet_soda_sheet
Usage
Best for large option sets with lots of additional decorators or other metadata. Sheets simplify organization, visualization, and client collaboration.
Tip! Lists can be reused as much as needed in a survey. See Referencing and reusing lists for more information.
Comments
0 comments
Please sign in to leave a comment.