Athento allows you to define rules or patterns that must be met in a field in order to validate the form.
If the defined rule or pattern is not met, Athento does not allow the user to validate the form with an incorrect value.
Management of these patterns is done from the field administration.
In the Pattern option, you can write a regular expression that will be evaluated at the time of validating the form.
If the pattern is not met when validating the form, an error message will be shown to the user.
In the example, the following expression has been defined as the pattern: ^-?[0-9]+([.,]\d+)?$
This expression allows you to validate that the entered data is a numeric value, with decimals separated by a dot or comma.
Remember that, to prevent validation of a form when a field is empty, you must mark the field as required.