ButtonsResponse
Defined in: parser/types.ts:656
The ButtonsResponse interface is used to define the properties of a buttons response. ButtonsResponses render as a list of buttons that the participant can click. When a button is clicked, the value of the button is stored in the data file. Participants can cycle through the options using the arrow keys.
Example:
{
"id": "buttonsResponse",
"type": "buttons",
"prompt": "Click a button",
"location": "belowStimulus",
"options": [
"Option 1",
"Option 2",
"Option 3"
]
}
In this example, the participant can click one of the buttons labeled "Option 1", "Option 2", or "Option 3".