The image shows the Validate Function which will helps to check all mandatory fields during save.