The selectall
tag is used with multiselect checkbox questions and tables so respondents can select a single option to trigger the selection of all other options.
1. Which of the following hotels have you stayed at in the past 12 months?
type: checkbox
instructions: Select all that apply.
selectall: 99
randomize: y
1. Hilton
2. Sheraton
3. Wyndham
4. Marriott
5. Hyatt
6. Best Western
7. Westin
99. All of these {anchor: y}
Details
- The
selectall
tag can specify a single option ID to select all other options (e.g.,selectall: 99
) or a subset of options by listing the select all option ID first, followed by the options that should be chosen with it in a comma separated list (e.g.,selectall: 99,1,11,12
). - The
selectall
tag also allows for ranges of responses as input, similar to theseries
tag. For example,selectall: 99,1,2,3,4
can also be written asselectall: 99,1..4
. -
Non-continuous sets are also allowed with
selectall
(e.g.,selectall: 99,1,3..6,10,11
). -
Multiple
selectall
tags can be added to a single widget. -
selectall
can be paired with theexclusive
tag or decorator to provide respondents with both "all of the above" and "none of these" responses. - To fix the position of a select all option while randomizing other options, include the
anchor: y
decorator on the select all option as shown above.
Additional examples
Using multiple 'selectall' tags
Since selectall
can specify a subset of options to check when the select all option is chosen, multiple selectall
tags can be included on a widget with each specifying a different subset of options.
set list: FLAVORS
1. Vanilla
2. Chocolate
3. Chocolate Chip
4. Strawberry
5. Cookies-n-Cream
6. Banana
7. Mango
8. Rocky Road
2. What are your favorite flavors of ice cream?
type: checkbox
selectall: 98,1,2,3,4
selectall: 99,5,6,7,8
optsfrom: FLAVORS
98. Select All Regular Flavors
99. Select All Specialty Flavors
Using 'selectall' with 'exclusive'
The exclusive
tag/decorator acts as the opposite of the selectall
tag. Both tags can be used on the same question as shown below. Note, unlike selectall
, options flagged with the exclusive
tag/decorator are anchored in place automatically by the system.
3. Which of the following movie franchises have you enjoyed watching?
type: checkbox
selectall: 97
randomize: y
1. Star Wars
2. Lord of the Rings / The Hobbit
3. Harry Potter
4. Aliens
5. Twilight
6. Die Hard
7. Jurassic Park
97. All of these {anchor: y}
99. None of these {exclusive: y}
Comments
0 comments
Please sign in to leave a comment.