In this type of validation, the content that has been input is converted into a number and compared with the specifications for the lower limit (attribute start) and upper limit (attribute end).
The validation is processed at these points of times:
- When building-up the Form-UI page.
- When pressing the Enter key.
- When the focus leaves the input field.
If the input is not in the permitted range, the input field is shown with a red background color and the self-defined tooltip (attribute message) then shows a corresponding message.
| Attribute name | Usage | Attribute values | Default value | Description |
|---|---|---|---|---|
| end | required | any | Upper limit of the allowed range | |
| message | required | eo, focusOut, modify | Text displayed as a tooltip when an error occurred. | |
| start | required | any | Lower limit of the allowed range |
| Allowed sub-elements | Quantity |
|---|---|
| none |
A process temperature to be entered must be in the range of -10 through +20.
<input type="text" receiver="parameter('Temperature')" >
<inputValidators>
<numberRangeValidator start="-10" end="20" message="Valid values are in the range of -10 to +20" />
</inputValidators>
</input>
Result:
