Available Liferay 7.4+

Object validations set rules for determining valid field entries and are defined using either Groovy scripts or Liferay expressions. When triggered, the validation checks for valid field entries according to defined conditions and displays an error message for invalid entries.

Add field validations to object definitions.

Adding Custom Validations
Expressions Builder Validations Reference