up Inquisit Language Reference

setOption function

Sets the response option at the specified index for a multiple choice question.

Member of

<checkboxes><dropdown><listbox><radiobuttons>

Syntax

optionitem.name.setOption(option, index)

Return Type

none

Parameters

Name Type Description
option string The option for the response.
index integer The index of the option to set.

Remarks

The setOption function sets the option for a multiple choice question.

Examples

The following sets the option for the first response of a radioButtons question to cake.

<trial.example>
/ onTrialBegin = { radioButtons.example.setOption("cake", 0}; }
</trial>

Copyright Millisecond Software, LLC. All rights reserved.