validatorFunction

The validatorFunction property (formerly the validator property) identifies a validator function, which is logic that runs in the second stage of validation.

In the first stage, EGL performs the following actions for a single field, then moves to the next field and performs all the actions for that field. The process continues until all actions have been performed for all fields:

This order of events is important because the validator function can do cross-field checking, and such checking often requires valid field values. The validationOrder property also affects the order in which EGL validates fields.

The value of validatorFunction is the name of a function. This can be a function that you write, or one of the following system functions:

If you specify one of these two system functions, the form, page, or VGUIRecord is redisplayed with an error message. The error message is determined by the validatorFunctionMsgKey property.

The following limitations apply to a function that you code:

Compatibility

Table 1. Support for validatorFunction property
Data item JSF handler VGUI record Console UI Text Form Java™ Text Form COBOL Print Form Java Print Form COBOL
Yes Yes Yes No Yes Yes No No

Feedback