Skip to main content

ButtonOption

Defined in: parser/types.ts:405

The StringOption interface is used to define the options for a dropdown, radio, buttons, checkbox, matrix, and ranking response. The label is the text that is displayed to the user, and the value is the value that is stored in the data file.

Extends​

Properties​

PropertyTypeDescriptionInherited fromDefined in
infoText?stringThe description that is displayed when the participant hovers over the option. This does not accept markdown.StringOption.infoTextparser/types.ts:402
key?stringKeyboard shortcut for this button (e.g., "r", "ArrowLeft", or "Shift+X").-parser/types.ts:407
labelstringThe label displayed to participants. Markdown is supported.StringOption.labelparser/types.ts:398
value?stringThe value stored in the participant's data. Defaults to label.StringOption.valueparser/types.ts:400