Sets the response option value at the specified index for a multiple choice question.
none
Name | Type | Description |
---|---|---|
value | string | The value for the response. |
index | integer | The index of the response value to set. |
The setOptionValue function sets the value of a response for a multiple choice question.
The following sets the value of the first response of a radioButtons question to cake.
<trial.example>
/ onTrialBegin = { radioButtons.example.setOptionValue("cake", 0}; }
</trial>