Invoke validation in a job wizard step
About this task
These steps walk through the process of invoking a static validation method from a job wizard step. Specifically, it illustrates how to link the various Gosu validation classes and methods to the Vehicles step in the Commercial Auto Submission wizard. The page fails a validation check because there is no value set for the Length of Lease/Rental (months).
Procedure
- Start a Commercial Auto submission. In these steps, create the submission from the Wright Construction account in sample data.
-
On the Commercial Auto Line screen, enter the following:
Option Description Product Commercial Auto Fleet Fewer than 10 units - Advance to Vehicles and click Create Vehicle.
-
Fill in all required fields:
Option Description Garaged At 846 Yount Ln., Hollywood, CA Vehicle Type Passenger Vehicles VIN abc Cost 9000 Class 0423 Leased or Rented Yes Length of Lease/Rental (months) <none>6 months or greaterLess than 6 months Do not enter a value -
Click OK.
In the Validation Results panel, PolicyCenter displays an error message that length of lease is required.
