up Inquisit Language Reference

range attribute

The range attribute defines the minimum and maximum allowed responses.

Member of

<checkboxes> <openended> <slider> <slidertrial> <textbox>

Syntax

/ range = (min, max)

or

/ range = (minexpression, maxexpression)

Parameters

Name Type Description
min integer The minimum permissible response value.
max integer The maximum permissible response value.
minexpression value An expression resolving to the minimum permissible response value.
maxexpression value An expression resolving to the maximum permissible response value.

Remarks

The range attribute provides a simple way to constrain the range of numeric responses to be between the specified minimum and maximum values. To place more complex constraints on a survey response, see the mask attribute.

Examples

The following constrains the range of valid responses to be 18 to 120.

<textbox age>
/ caption="Please enter your age"
/ range=(18, 120)
</textbox>

Copyright Millisecond Software, LLC. All rights reserved.