Custom validation formulas
To add a custom validation formula, open the Workflow Manager (
) and browse to the CustomValidate event for the object that you're working with. The CustomValidate event is available for these objects:- CDR.Building.BuildingApplication
- CDR.BusinessLicense.LicenseApplication
- CDR.CodeEnforcement.Case
- CDR.Planning.PlanningApplication
- CDR.Project.ProjectApplication
- CDR.TradeLicense.TradeLicense
- CDR.UseApplication.UseApplication
The CustomValidate event is triggered when the user saves an application, license, or case, in the start process, such as when starting a new building application. The formula is typically used to validate the data that the user has entered. For example, the formula might indicate that certain priority codes are invalid for certain application types.
The CustomValidate event is also triggered when the user selects CDR fees for payment in the Cash Register.
If you want the CustomValidate formula to fire only in the start process, then wrap your formula in this If statement:
If BuildingApplicationKey <= DbNullRec.Value
<Formula>
End if
If you want the CustomValidate formula to fire only in the Cash Register, wrap your formula in this If statement:
If BuildingApplicationKey > DbNullRec.Value
<Formula>
End if