FieldValidate event

This event fires when a field is about to be validated. It fires at least once for each field and can fire several times if the field value is edited and validated repeatedly.

In the Interpret module, this event can be fired several times for a field while incomplete invoice definition fields are validated. In these cases, the fields are merely proposals.

Note: Because this event is fired before INVOICES' internal validation, INVOICES could reset changes your code makes. You can use evtOKAbort to skip INVOICES' validation, but we recommend using the FieldComplete and InvoiceComplete events for validation instead.

Syntax

Public Function FieldValidate() As Long

Parameters

None.

Active objects

FieldDefinition

FieldProfile

Invoice

InvoiceDefinition

InvoiceField

InvoiceProfile

Return values

evtOK 

Normal return

evtOKAbort 

Causes the internal field validation to be skipped.

evtCancel 

Causes an error message and job termination.

evtError 

Causes an error message and job termination.

Suggested usage

Could be used to implement specific field validations that cannot be performed by INVOICES.