Properties

Identity & display

Properties that name the question and define its visible content — qid, type, text, instruction, and the format variants.

qid

The question identifier. Every question must have one and it must be unique within the survey.

Validity rule: alphanumeric and underscore only; must start with a letter. Regex: ^[A-Za-z][A-Za-z0-9_]*$.

- qid: QBrand          # valid
- qid: Q1              # valid
- qid: QSatisfaction   # valid
- qid: hRegion         # valid (h-prefix convention for hidden questions)

- qid: 1Q              # invalid — starts with a digit
- qid: Q-Brand         # invalid — hyphen
- qid: Q Brand         # invalid — space

qid is also the base of the export column name. See Column naming.

type

The question type. Determines which properties are valid and how the question renders. Required.

type: single        # one coded answer
type: multi         # multiple coded answers
type: number        # one numeric answer
type: gridSingle    # one selection per row, shared scale
# ...etc

The full catalogue is under Question types.

text

The question stem — what the respondent reads.

text: Which brands have you heard of?

text accepts inline HTML for emphasis: <b>, <i>, <br>, links, simple inline styles. See Safe HTML for the full allow-list.

For multi-line content, use the YAML literal block scalar:

text: |
    First paragraph here.

    Second paragraph here, with <b>bold</b> text.

instruction

Subtext under the stem, typically usage hints. Optional.

text: Which of these have you used?
instruction: Select all that apply.

Same HTML allow-list as text.

title

A higher-level grouping label, shown above the question stem. Useful for sections in long surveys. Optional.

title: Brand awareness
text: Which of these have you heard of?

Piping into displayed text

text:, title:, instruction:, and label fields all accept {{ ... }} placeholders directly — no separate property is needed. The renderer substitutes the value at runtime using the same expression syntax used in conditions.

- qid: QFollow
    type: open
    text: Tell us more about {{ QBrand.selectedLabel }}.

See Piping for the full surface.

label.prefix / label.suffix

Decorate input fields with non-editable text. Common for currency, units, percent symbols on number, numberList, gridNumber, and open questions.

- qid: QSpend
    type: number
    text: How much did you spend last month?
    label.prefix: $
    label.suffix: USD

See also