We generally validate recordse before saving them to database. Most of the times for some fields, some validations are defined in the Filemaker database itself. As long as data passes the validation defined in the Filemaker database, it will thtrow error while saving the data. So we need to check whether the data passes the validation defined in filemaker database or not. To do that filemaker api provides a function ‘validate()’.
This function will return TRUE, it data passes the validation defined in filemaker database or else it will return FileMaker_Error_Validation object containing details about what failed to validate.