up Inquisit Language Reference

optionValue function

Returns the option value at the specified index.

Member of

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

Syntax

optionitem.name.optionValue(index)

Return Type

string

Parameters

Name Type Description
index integer The index of the option value to get.

Remarks

The optionValue function returns the value assigned to a response from a multiple choice question.

Examples

The following displays an option value from a radioButtons element in the item for a text element:

<text myText>
/ items= ("current category = <% radioButtons.example.optionValue(1) %>")
</text>

Copyright Millisecond Software, LLC. All rights reserved.