Hi Aeleen,

The easiest way is to declaratively specify validation in the field attributes.
https://www.lianja.com/doc/index.php/Field_Attributes

Alternatively there are a wide range of...