When to use validateField or ValidateWrite on table?

When should you use each and why? Does validateWrite call validateField?

When are they each called and by what?

1 Like

Hai alex,

Validate field is normally used when u want to validate a field in particular, where in based on your condition as soon as you modify it will throw the desired result

and validate write is called when the records gets saved.!!

Regards

Shon

Hi Alex,

The validateWrite() method validates that each mandatory field is filled in.
This is the place to add validation through code.
It does not validate that the record already exists (because for that it
needs a database query to be executed).

ValidateField () fires every time the user changes the value in a field. The methods parameters give you the fieldId

validatewrite() does not trigger validateField().

Naresh Kolli

Hi

To validate field by field u can use ValidateField. while creating new record , moving from field to field then validate Field calls…

Hi

To validate field by field u can use ValidateField. while creating new record , moving from field to field then validate Field calls…Check in Address table ->ValidteField().