Order tags can be applied to tables to arrange list elements for options, rows, and columns.
setlist: CLOTHING
1. Socks
2. Pants
3. Shirts
setlist: MATERIALS
1. Cotton
2. Nylon
3. Wool
4. Fleece
setlist: SEASONS
1. Winter
2. Spring
3. Summer
4. Fall
3. Select the material you would prefer to wear for each piece of clothing in each season.
type: pulldown table
colorder: [*]
optorder: [*]
roworder: <*>
colsfrom: CLOTHING
optsfrom: MATERIALS
rowsfrom: SEASONS
Tip! For simple randomization of options, use randomize: y
instead of order: [*]
.
Details
- The
order
tag can be used for inline options, rows, or columns in a table.
- To apply
order
to a table's rows, add it immediately after therows
tag. - To apply
order
to a table's columns, add it immediately after thecols
tag. - To apply
order
to a table's options, add it before or at the end of your option set (theoptions
tag is optional).
- To apply
- To specify ordering on a table when using "external lists" such as set lists or derived lists, use the
colorder
,optorder
, orroworder
tags. -
Single-line definitions for specifying order can be included on the
optsfrom
,colsfrom
, orrowsfrom
listcalls with bothorder
andorderfrom
-- e.g.,optsfrom: LISTNAME [order: [*]]
.
Tags
Tag | Description |
order |
Specifies option ordering. Can be used on table options, rows, and columns for inline lists or on a set list. |
colorder |
Specifies ordering patterns for column elements defined with the colsfrom tag on a multicolumn or vertical (vscale) table. |
optorder |
Specifies ordering patterns for options defined with the optsfrom tag. |
roworder |
Specifies ordering patterns for row elements defined with the rowsfrom tag. |
flatorder variations | |
---|---|
flatorder |
Modifies option ordering in a list built from multiple collections. |
flatcolorder |
Modifies column element ordering in a list built from multiple collections. |
flatroworder |
Modifies row element ordering in a list built from multiple collections. |
orderfrom variations | |
orderfrom |
Applies the order from another list or question to options defined inline or via the optsfrom tag. |
colorderfrom |
Applies the order from another list or question to column elements in a multicolumn or vertical (vscale) table. |
optorderfrom |
Applies the order from another list or question to options. Recommended for use when tables use options, rows, and columns or for additional clarity. |
roworderfrom |
Applies the order from another list or question to row elements. |
Additional examples
Applying orders from other questions or lists
The optorderfrom
, roworderfrom
, and colorderfrom
tags allow you to apply the order of a previous question or setlist to another table's options, rows, or columns, respectively, if they have the same number of list elements. Here T3A uses the randomized order from the derived list T3.rows, applying the same positional order shown in T3. For example, if T3's rows were shown in the order 5,3,2,1,4, then the rows in T3A will be shown in that same order.
3. How often do you use the following social media platforms?
type: radio table
1. Never
2. Occasionally
3. Frequently
4. Daily
rows:
order: [*]
1. Facebook
2. Twitter
3. Instagram
4. Tik Tok
5. Reddit
3A. How likely are you to get your news from these sources?
type: radio table
headings: Highly Unlikely, Highly Likely
optsfrom: series[1..5]
roworderfrom: T3.rows
rows:
1. TV
2. Radio
3. Newspapers / magazines
4. Social media
5. News websites (AP, Daily Kos, etc.)
Single-line definitions for ordering at a listcall
Orders can be applied on a listcall by adding the order
tag in square brackets after the list name. This can be used to override a previously specified order as shown in T4.
setlist: SOCIALMEDIA
randomize: y
1. Facebook
2. Twitter
3. Instagram
4. TikTok
5. Reddit
4. How often do you use the following social media platforms?
type: radio table
1. Never
2. Occasionally
3. Frequently
4. Daily
rowsfrom: SOCIALMEDIA [order: <*>]
Similarly, we can use the orderfrom
tag in square brackets on a listcall in place of using the optorderfrom
, roworderfrom
, or colorderfrom
tags to apply the order from a previous question or list. If Q4A displays its options in the order 1,5,3,4,2, then this same order will be applied to T4B's rows.
4A. What are your <b>top 3</b> reasons for using social media?
type: checkbox
maxchecked: 3
randomize: y
1. Keeping in touch with friends / family
2. Keeping up with current events / news
3. Following bands, artists, or influencers
4. Following local restaurants or businesses
5. Finding out about local happenings
setlist: NEWSSITES
randomize: y
1. CNN
2. NPR
3. FOX News
4. MSNBC
5. BBC
4B. How favorable do you view each of these social media platforms?
type: radio table
1. Unfavorable
2. Neutral
3. Favorable
99. Unfamiliar
rowsfrom: NEWSSITES [orderfrom: Q4A]
Reordering lists comprised of multiple collections
Similar to the flatorder
, the flatroworder
and flatcolorder
tags can be used to rearrange list elements from multiple collections that have been combined into a single list in table rows or columns. By applying to T6, all elements that make up the rows will be randomized together. Without it, the elements of FASTFOOD1 would be listed together in random order, followed by the randomized elements of FASTFOOD2.
setlist: FASTFOOD1
randomize: y
1. Chik-fil-A
2. Dunkin' Donuts
3. Bojangles
4. Krispy Kreme
setlist: FASTFOOD2
randomize: y
5. McDonald's
6. Taco Bell
7. White Castle
8. Burger King
6. Which meals are you most likely to eat at these fast food restaurants?
type: checkbox table
1. Breakfast
2. Lunch
3. Dinner
99. None of these {exclusive: y}
flatroworder: [*]
rowsfrom: FASTFOOD1
rowsfrom: FASTFOOD2
Comments
0 comments
Please sign in to leave a comment.