up Inquisit Language Reference

selectedValue property

The value of a response given on a multiple choice survey question.

Member of

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

Syntax

optionitem.name.selectedValue

Read Only

Type

value

Remarks

If the optionValues attribute is defined, the selectedValue property returns one the optionValue corresponding to the selected option. If the optionValues attribute is not defined, the caption of the selected option as defined by the options attribute is returned. In either case, if no option is selected, an empty string is returned.

Examples

The following displays the value of selected option in a text stimulus:

<text myText>
/ items= ("selectedValue = <% radioButtons.foo.selectedValue %>")
</text>

The following displays the value of option in an instruction page:

<page myPage>
selectedvalue = <% listbox.bar.selectedValue %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.