up Inquisit Language Reference

optionvalues attribute

The optionvalues attribute specifies the values corresponding to each option of a multiple choice survey item.

Member of

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

Syntax

/ optionvalues = ("value", "value", "value", ...)

Parameters

value Specifies the value (in quotes) for a given choice.

Remarks

The optionvalues attribute allows you to specify a value to be recorded in the data file for an option that is different than the option's display text. For example, each option could be assigned a numeric value or another code that would facilitate data analysis. The option values can be any string of text. If no optionvalues are specified, the values are set to the display text specified in the options attribute.

Examples

The following shows a listbox survey item with numeric option values:

<listbox ratingquestion>
/ caption = "How do you feel about icecream?"
/ optionvalues=["excellent", "good", "satisfactory", "bad", "aweful"]
/ optionvalues=["1", "2", "3", "4", "5"]
</listbox>

The following shows a listbox survey item with dynamic values:

<listbox ratingquestion>
/ caption = "How do you feel about icecream?"
/ optionvalues=["excellent", "good", "satisfactory", "bad", "aweful"]
/ optionvalues=["<% values.icecream1 %>", "<% values.icecream2 %>", "<% values.icecream3 %>", "<% values.icecream4 %>", "<% values.icecream5 %>"]
</listbox>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.