Reference

Compatibility matrix

One-glance reference for which accessors, methods, and styles each question type supports. Cmd-F any name to see which types accept it.

Scope

This matrix covers the standard 12 question types: info, single, multi, rank, open, openList, number, numberList, gridSingle, gridMulti, gridNumber, mixGrid.

The advanced types — lookup, imageAnnotation, videoAnnotation, textAnnotation, cardSort — and the conjoint family (CBC, MaxDiff) live on their own deep-dive pages because they carry distinctive surfaces that don’t share well with the standard grid.

How to read

CellMeaning
✓Supported on this type
✗Not supported; the runtime returns nothing useful or the validator rejects the call

The first column stays pinned as you scroll the table horizontally.


Question-level accessors

Reads on the question proxy. Most are properties — call them without parens (Q.value, Q.selected, Q.answered). One in this table is a method that takes an argument: Q.at(N). Both shapes are reads, not writes; programmatic writes live in Methods (writes) below.

AccessorinfosinglemultirankopenopenListnumbernumberListgridSinglegridMultigridNumbermixGrid
.answered✗✓✓✓✓✓✓✓✓✓✓✗
.notAnswered✗✓✓✓✓✓✓✓✓✓✓✗
.value✗✓✗✗✓✗✓✗✗✗✗✗
.values✗✗✗✓✗✓✗✓✓✗✗✗
.selected✗✓✓✓✗✗✗✗✓✗✗✗
.selectedLabel✗✓✗✗✗✗✗✗✓✗✗✗
.selectedLabels✗✗✓✓✗✗✗✗✗✗✗✗
.all✗✓✓✓✗✓✗✓✓✓✗✗
.allLabels✗✓✓✓✗✓✗✓✓✓✗✗
.at(N)✗✗✗✓✗✓✗✓✓✓✓✗
  • .answered — True if any answer recorded. mixGrid reads through child qids.
  • .notAnswered — Inverse of .answered.
  • .value — The respondent’s answer when there’s just one: the selected code on single, the typed text on open, the entered number on number.
  • .values — A list of the respondent’s answers: typed strings on openList, numbers on numberList, codes in rank order on rank, the selected scale code per row on gridSingle.
  • .selected — The codes the respondent picked: one on single, several on multi and gridSingle, all of them in rank order on rank.
  • .selectedLabel — Display label of the selected code.
  • .selectedLabels — Display labels for selected codes.
  • .all — Effective domain after masking.
  • .allLabels — Labels for .all.
  • .at(N) (method, takes a position arg) — Position-based read. On rank returns the code at 1-based position N; on list / grid types returns the row proxy at N.
There’s no question-level .value on grid types or mixGrid. Reads happen per row (and per cell on grids) — see Row & cell access and the type’s deep-dive page. mixGrid reads happen on the nested column qids, not the parent.
.size lives on collections, not on the question proxy. For “how many did the respondent pick?” use Q.selected.size; for “how many options are visible?” use Q.all.size. The size accessor is part of the Collections surface. (lookup with multi: True is the one type that exposes .size at the question level.)

Row / column proxy accessors

Q.row(N) and Q.col(M) are themselves methods — they take a row or column code as an argument and return a proxy. The leaf accessors on that proxy (.value, .selected, .label, etc.) are then properties called without parens. Cell access chains two methods: Q.row(N).col(M) returns a cell proxy, then leaf properties read from there.

AccessoropenListnumberListgridSinglegridMultigridNumber
.row(N).value✓✓✓✗✗
.row(N).values✗✗✗✗✓
.row(N).selected✗✗✓✓✗
.row(N).selectedLabel✗✗✓✗✗
.row(N).selectedLabels✗✗✗✓✗
.row(N).all✗✗✓✓✗
.row(N).allLabels✗✗✓✓✗
.row(N).label✓✓✓✓✓
.row(N).answered✓✓✓✓✓
.row(N).col(M).value✗✗✗✗✓
.row(N).col(M).selected✗✗✓✓✗
.col(M)✗✗✗✗✓
  • .row(N).value — Scalar value: str on openList, number on numberList, Code (the selected scale code) on gridSingle.
  • .row(N).values — All numbers in a gridNumber row.
  • .row(N).selected — Selected scale code(s) for that row.
  • .row(N).selectedLabel — Label of the selected scale code.
  • .row(N).selectedLabels — Labels of the selected scale codes.
  • .row(N).all — The scale domain (codes).
  • .row(N).allLabels — The scale domain (labels).
  • .row(N).label — The row’s authored label.
  • .row(N).answered — True if the row has any value.
  • .row(N).col(M).value — Cell value on gridNumber.
  • .row(N).col(M).selected — Cell selection state on grids.
  • .col(M) (method, takes a column code arg) — gridNumber-only column proxy mirroring .row(N). Same accessor surface, just on the column dimension.

Methods (writes)

MethodsinglemultirankopenopenListnumbernumberListgridSinglegridMultigridNumber
Q.set(...)✓✓✓✓✓✓✓✓✓✗
Q.add(code)✗✓✗✗✗✗✗✗✗✗
Q.remove(code)✗✓✗✗✗✗✗✗✗✗
Q.reset()✓✓✓✓✓✓✓✓✓✓
Q.row(N).set(value)✗✗✗✗✓✗✓✓✓✗
Q.row(N).reset()✗✗✗✗✓✗✓✓✓✗
Q.row(N).col(M).set(value)✗✗✗✗✗✗✗✗✗✓
Q.row(N).col(M).reset()✗✗✗✗✗✗✗✗✗✓
  • Q.set(...) — Set the answer programmatically. The argument shape varies by type:
    • single — a code: QBrand.set(2)
    • multi — a list of codes: QBrand.set([1, 3])
    • rank — a list of codes in rank order: QPriority.set([3, 1, 2])
    • open — a string: QComment.set("text")
    • number — a number: QAge.set(42)
    • openList — a row map ({rowCode: string}): QQuotes.set({1: "first", 2: "second"})
    • numberList — a row map ({rowCode: number}): QSpend.set({1: 100, 2: 250})
    • gridSingle — a row map ({rowCode: scaleCode}): QSat.set({1: 4, 2: 5})
    • gridMulti — a row map ({rowCode: [scaleCodes]}) — values are lists: QFeats.set({1: [3, 5], 2: [2]})
    • gridNumber — not supported; use Q.row(N).col(M).set(...).
  • Q.add(code) — Append a code to a multi answer.
  • Q.remove(code) — Remove a code from a multi answer.
  • Q.reset() — Clear the answer (or whole grid).
  • Q.row(N).set(value) — Set a row’s value. The shape mirrors the question-level shape, scoped to one row: str on openList, number on numberList, Code (one scale code) on gridSingle, list of scale codes on gridMulti. Use .row(N).col(M).set(...) on gridNumber.
  • Q.row(N).reset() — Clear a row. Not on gridNumber.
  • Q.row(N).col(M).set(value) — Set a single cell — gridNumber only.
  • Q.row(N).col(M).reset() — Clear a single cell — gridNumber only.

info and mixGrid don’t expose write methods — info is content-only; mixGrid writes go through the nested column qids.


Return types

The same accessor name returns different types on different question types — .value is a Code on single, a str on open, a number on number. This matrix shows the exact return type for every supported (accessor, type) pair.

Type vocabulary

  • Code — a single option code (numeric).
  • CodeSet — collection of codes. Ordered: multi by authored domain, rank by user-specified order.
  • CodeList — ordered list of codes (rank’s .values, gridSingle’s .values).
  • Label — a single display label (string).
  • LabelList — list of display labels.
  • StringList — list of strings.
  • NumberList — list of numbers.
  • Row — row proxy; you’d typically dot-access into it (.value, .selected, etc.).
  • str / number / int / bool — Python primitives.

Question-level accessor return types

AccessorinfosinglemultirankopenopenListnumbernumberListgridSinglegridMultigridNumbermixGrid
.answered—boolboolboolboolboolboolboolboolboolbool—
.notAnswered—boolboolboolboolboolboolboolboolboolbool—
.value—Code——str—number—————
.values———CodeList—StringList—NumberListCodeList———
.selected—CodeSetCodeSetCodeSet————CodeSet———
.selectedLabel—Label——————Label———
.selectedLabels——LabelListLabelList————————
.all—CodeSetCodeSetCodeSet—CodeSet—CodeSetCodeSetCodeSet——
.allLabels—LabelListLabelListLabelList—LabelList—LabelListLabelListLabelList——
.at(N)———Code—Row—RowRowRowRow—

Row / column proxy accessor return types

AccessoropenListnumberListgridSinglegridMultigridNumber
.row(N).valuestrnumberCode——
.row(N).values————NumberList
.row(N).selected——CodeSetCodeSet—
.row(N).selectedLabel——Label——
.row(N).selectedLabels———LabelList—
.row(N).all——CodeSetCodeSet—
.row(N).allLabels——LabelListLabelList—
.row(N).labelLabelLabelLabelLabelLabel
.row(N).answeredboolboolboolboolbool
.row(N).col(M).value————number
.row(N).col(M).selected——boolbool—

.col(M) on gridNumber returns a column proxy with the same accessor surface as .row(N).


Skins per question type

TypeAvailable styles
info(no styles — content-only)
singleradio (default) · dropdown · buttons · cards · imageCards
multicheckbox (default) · buttons · cards · imageCards · dropdown
rankarrows · tapToRank · dropdownRank · podium · drag
opentext (default) · textarea
openList(no styles — row layout only)
numberinput (default) · slider · sliderTicks · stepper · dial · dropdown
numberListinput (default) · slider · sliderTicks · stepper · dropdown
gridSingleradioGrid (default) · paired · scaleButtons · cardStack · emojiScale · sliderGrid · bipolarSlider · scaleBar
gridMulticheckboxGrid (default) · cardStack · chipGrid
gridNumbergrid (default) · number · dropdown
mixGrid(no styles — uses desktop_style / mobile_style for layout)

See also

  • Each type’s deep-dive (linked from the sidebar)
  • Q.* accessors — runtime read surface
  • Row & cell access — .row(N) / .col(M) semantics
  • Collections — .any / .intersect / .size / etc. on .selected, .values, .all