combination of validation

i’m loading a form with loadstruct, and have more then 1 field i want to validate, use custom validation rules, use custom messages, and use send to save the data.

could someone please make me a example for this?

because when i use onValidateError and onValidateSuccess it continues with saving data when 1 of the fields is filled in right (even tho another field still is not filled in right).

thanks in advance!