Add a New Zealand field validator file

Before you begin

Complete the step Add a New Zealand folder under the geodata folder before you perform this step.

About this task

In this step you add a field validator file for New Zealand and add the field validator for a New Zealand postal code to it.

Procedure

  1. Navigate in the Project window to configuration > config > fieldvalidators.
  2. Right-click fieldvalidators and choose New > Package, and then enter NZ and click OK.
  3. Copy fieldvalidators.xml from AU to the new NZ folder.
  4. In the new file, change Validator.PostalCode.FourDigit to Validator.PostalCode.NZ. The new validator definition is:
      <ValidatorDef
        description="Validator.PostalCode.NZ" 
        input-mask="####" name="PostalCode" 
        value="[0-9]{4}"/>

What to do next

The next step is Add typecodes for currency and jurisdiction.