Question Select

Add and configure the Question Select component in a Docmino document.

When to use

Use Question Select for scored questions where readers choose one or more answers from a defined set.

Props

Name⇅
Type⇅
Description⇅
id
string
A stable identifier used to reference the component.
prompt
string
The question or instruction shown to the reader.
explanation
string
Feedback shown after the question is answered.
options
expression
The choices available to the reader.
multiple
boolean
Allows more than one option to be selected.
answer
expression
The expected answer used to evaluate a response.
required
boolean
Requires a response before the document can be submitted.
visibleWhen
expression
A condition that controls when the component is visible.
requiredWhen
expression
A condition that makes the component required when it matches.
disabledWhen
expression
A condition that disables the component when it matches.
triggers
expression
Actions that run after the component interaction completes.

Example

Question.Select

Single choice

What is the capital of France?

Multiple choices

Select the prime numbers

<Question.Select prompt="What is the capital of France?" options={["Berlin", "Madrid", "Paris", "Rome"]} answer={2} explanation="Paris is the capital and largest city of France." /> <Question.Select prompt="Select the prime numbers" options={["2", "3", "4", "5"]} answer={[0, 1, 3]} explanation="2, 3, and 5 are prime numbers." multiple={true} />