The columns
tag is used with radio and checkbox questions to control how many vertical columns of answer options are displayed.
1. This question has a long list of items to display.
type: radio
optsfrom: series[1..100]
columns: 3
Details
-
columns
accepts a number, variable, or Perl expression as its input. - You can use the
optwidth
tag to set the column width in non-modern themes. - A variable or Perl expression must evaluate only to a non-zero, sensible number of columns. Zero or null values prevent the survey from functioning correctly.
Additional examples
Setting a dynamic value
This example uses the number entered at Q2 to determine the number of columns shown at Q3.
2. How many columns?
type: integer
size: 3
range: 1-10
3. The question has the same number of columns as the number entered in Q2.
type: radio
optsfrom: series[1..10]
columns: $Q2
Comments
0 comments
Please sign in to leave a comment.