The range attribute defines the minimum and maximum allowed responses.
<checkboxes> <openended> <slider> <slidertrial> <textbox>
minimum | The minimum permissible response value. |
maximum | 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>