The simplest way of validation is to mark a form element as mandatory. The validation then checks whether the element has been filled with content as required.
A second validation level is to validate the field contents themselves, for example to prevent incorrect or incomplete entries. For example, an input field for (German) postal codes should consist of exactly five digits or an e-mail address field should contain a valid email address. A validation of entries can be done using regular expressions.
The form element Text Box therefore contains the attributeRegular Expression where you can enter the desired regular expressions. When validating the data entered in the input field, the system then checks whether the entries comply with the required rules.
We have compiled a list of helpful regular expressions for you:
Regular Expression
Description
Use Case
[0-9]{5}
Only digits and exactly five digits are accepted.
Validate a German zip code.
[0-9/ -]*
The field may only contain (any number of) digits, slash, space and minus sign, or it may be blank.
Check the input of phone numbers.
[A-Za-z0-9]+
Only letters and numbers are allowed.
Prevent usage of special characters in the input.
[a-zA-Z0-9 öäüÖÄÜ §%&]*
Allowed input: Any number of upper and lower case letters, digits, umlauts and the special characters §, %, & are permitted.
Suitable for checking a password that may only contain the special characters specified in the regular expression.
[a-zA-Z0-9§%&]{8,16}
Allowed input: Upper and lower case letters (but no umlauts), digits and the special characters §, %, &. And the input must consist of at least 8, but not more than 16 characters.
Suitable for checking a password that may only contain the special characters specified in the regular expression and must have a certain length.
[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-z]{2,}
Allowed input:
String (containing letters, digits, dot, underscore or minus) followed by an @-sign and another string (containing letters, digits, dot, underscore or minus) followed by a dot and two or more letters.