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

Name Type Description
value string A string indicating the value 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", "awful"]
/ 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", "awful"]
/ optionValues=["<% values.icecream1 %>", "<% values.icecream2 %>", "<% values.icecream3 %>", "<% values.icecream4 %>", "<% values.icecream5 %>"]
</listbox>

Copyright Millisecond Software, LLC. All rights reserved.