Validation
Validation is a way of restricting the data that can be entered in a page control to a set of acceptable values. In the Page Editor you can define validation rules for certain types of controls, such as edit boxes, check boxes, and HTML areas.
To validate a control, use the ValidationFormula property to specify a formula. The formula might specify a list of acceptable values, or it might apply more complex conditions.
In your formula, use this line to cause validation to fail.
return new Result(0, ResultSeverity.UserError, "[error message here]")
The actual validation rules are defined in a conditional statement. When
validation fails, Infor Public Sector shows a field-level error
message. Replace [error message here]
in the formula
with the message that you want to show.