The formatTest property can be used for validations.
Reference_Syntax.formatTest = “warning | disabled | error”
Do not perform any test. The form object is permitted to have a value that does not conform to the picture clause. The field can be left with a non-conforming value and it will not invalidate the form.
warning (default)
Emit a message if the data does not fit the picture clause, but allow the user to proceed to the next field. The message must inform the user that the form object should have a value that conforms to the picture clause. It must provide two choices:
dismiss: The user understands the message and wants to return to the form to satisfy this constraint.
override: The user understands the message, but chooses to contravene this constraint.
Form Model

formatTest