The range attribute defines the minimum and maximum allowed responses.
<checkboxes> <openended> <slider> <sliderTrial> <textbox>
or
/ range = (minexpression, maxexpression)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. |
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.
The following constrains the range of valid responses to be 18 to 120.
<textbox age>
/ caption="Please enter your age"
/ range=(18, 120)
</textbox>