Properties — overview
How questions are configured. Properties are the YAML keys under a question that control its identity, content, choices, constraints, layout, and conditional behaviour.
What a property is
Every key under a - qid: line is a property. Properties divide
into five families, each with its own reference page:
| Family | What it controls | Reference |
|---|---|---|
| Identity & display | qid, type, text, instruction, format | Identity & display |
| Choices & domains | options, group, scale, specify, anchor, exclusive | Choices & domains |
| Constraints | min, max, exact, sum, decimal, required, validation | Constraints |
| Layout & input | layout, label, input, style | Layout & input |
| Conditional & dynamic | if, options.from, scale.from, visibility | Conditional & dynamic |
How properties combine
Most properties are independent. A few interact:
optionsandgroupare mutually exclusive. Use one or the other.optionsandoptions.fromwork together —optionsdefines the authored domain,options.fromfilters which authored options render.min,max, andexactconstrain answer counts onmultiandgridMulti.exactoverridesmin/maxif both are set.required: Trueforces the respondent to answer;readonly: Truehides the question from the respondent. BothTrueis contradictory and rejected by the validator.
What’s allowed where
Not every property works on every question type. The validator rejects
incompatible combinations — for example, scale: on a single is
nonsense and will fail validation. Each question-type page lists the
properties it accepts.
For the full matrix see the per-type pages under Question types.
Defaults
| Property | Default | Notes |
|---|---|---|
required | True for answer-bearing types, irrelevant for info | Override with required: False |
order | fixed | Set to random or randomEach to shuffle |
readonly | False | True for hidden helper questions |
decimal | False (on number / numberList) | Set decimal: True to allow fractions |
direction (gridNumber) | rows | Affects total placement and column naming |
Naming conventions
- Property names are lowercase, dot-separated for hierarchical concepts:
label.prefix,input.size,options.from. - Boolean values use
True/False(capitalised, Python style). - Lists use YAML list syntax:
min: 2andmax: 5, notmin: 2, max: 5.