Add a New Zealand field validator file
Before you begin
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
- Navigate in the Project window to .
-
Right-click fieldvalidators and choose , and then enter
NZand click OK. - Copy fieldvalidators.xml from AU to the new NZ folder.
-
In the new file, change
Validator.PostalCode.FourDigittoValidator.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.
