Skip to content

Add Validations

For fields there is the possibility to validate commands. For example, if a value is typed into a field, and the user then leaves this field.

Client validations are defined on the record level, thus the syntax appears on the projection. Client validations work on all text fields. The example shows a validation where quantity is checked that it is greater than zero:

attribute Quantity Number {  
      validate [Quantity >= 0] message "Quantity is invalid, must be greater than zero";  

For more information about validation, refer to Client validations.