In this type of validation, the input content is compared with the given specifications by means of a regular expression.
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 identical to the regular expression, 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 |
---|---|---|---|---|
javaRegEx | required | any | Regular expression which describes the allowed content. | |
message | required | eo, focusOut, modify | Text displayed as a tooltip when an error occurred. |
Allowed sub-elements | Quantity |
---|---|
none |
Only specific names should be possible for entering a cardinal point.
<input type="text" receiver="=parameter('Himmelsrichtungen')">
<inputValidators>
<contentValidator javaRegEx="\b(West|Ost|Nord|Süd)\b" message="Erlaubte Himmelsrichtungen sind: Nord, Süd, Ost, West" />
</inputValidators>
</input>
Result: