Properties

Layout & input

Properties that control how a question is rendered — column count, input sizing, label positioning, ordering, style variants.

order

Controls the order in which options, group items, or scale items render to the respondent.

ValueBehaviour
fixedDefault. Render in authored order.
randomShuffle once per respondent.
randomEachRe-shuffle every time the question is shown (relevant inside loops).
- qid: QBrand
    type: single
    text: Which brand?
    order: random
    options:
        1: Apple
        2: Samsung
        3: Sony
        4:
            label: None of these
            anchor: True       # exempt from random

Anchored items (anchor: True) are pinned in place even when order: random is set. See Choices & domains.

scale.order, group.order

Parallel order for the scale dimension on grid types and the group dimension on grouped option lists.

- qid: QSatisf
    type: gridSingle
    text: Rate each.
    order: random           # randomise rows
    scale.order: random     # randomise scale columns
    options:
        1: Service
        2: Price
        3: Reliability
    scale:
        1: Excellent
        2: Good
        3: Average
        4: Poor

layout.cols — multi-column layout

Render options across multiple columns. Default 1.

- qid: QState
    type: single
    text: State
    layout.cols: 4
    options: states

Behaviour varies slightly by question type — see the per-type pages under Question types.

layout.width — input width

Width of the input field as a CSS-style value (e.g. 200px, 30%, auto). For open, number, numberList, openList.

- qid: QFeedback
    type: open
    text: Anything else?
    layout.width: 100%

label.position

Where the row label sits relative to the input on numberList, openList, and grid types.

ValueBehaviour
leftLabel to the left of the input (default).
rightLabel to the right.
topLabel above the input.
bottomLabel below.

label.prefix / label.suffix

Non-editable text adjoining an input. Common for currency, units, percent.

- qid: QSpend
    type: number
    label.prefix: $
    label.suffix: per month

input.size

Width of the input box, expressed as a character count (rough; exact rendering depends on the font).

- qid: QYears
    type: number
    label.suffix: years
    input.size: 4         # roughly 4 characters wide

input.rows

Number of visible rows for open (textarea-style) inputs.

- qid: QFeedback
    type: open
    text: Tell us more.
    input.rows: 5

style — variant picker

Each question type ships with multiple visual styles. The default is chosen automatically; style: overrides it.

TypeStyles
singleradio, dropdown, buttons, cards, imageCards
multicheckbox, buttons, cards, imageCards, dropdown
rankarrows, tapToRank, dropdownRank, podium, drag
opentext, textarea
numberinput, slider, sliderTicks, stepper, dial, dropdown
gridSingleradioGrid, paired, scaleButtons, cardStack, emojiScale, sliderGrid, bipolarSlider, scaleBar
gridMulticheckboxGrid, cardStack, chipGrid
- qid: QRating
    type: single
    text: Rate your experience.
    style: emojiScale
    options:
        1: Terrible
        2: Bad
        3: OK
        4: Good
        5: Great

For the full list of allowed styles per type and what they look like, see Skin variants.

See also