ACCEPT

Resource: Office, Field : OfficePostalCode

Description

OfficePostalCode is required and must be exactly 5 digits.

Error Messages

1) ERROR, entry must contain exactly five digits.

Fields referenced within this rule

OfficePostalCode 

Syntax with comments and error messages

//[ErrMsg1^ERROR, entry must contain exactly five digits.|LogicBlk1^TRUE|LogicBlk2^FALSE]
// If the the entry is not empty and has changed...
IIF((/*[LogicBlk1]*/(.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),
// Then verify that the entry is exactly 5 digits...
(/*[LogicBlk2]*/MATCH('^\d{5}$',.ENTRY.)),.TRUE.)

Syntax only

IIF(((.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),(MATCH('^\d{5}$',.ENTRY.)),.TRUE.)

Rule Unique ID

63e378f0-3184-4276-8651-0fd4f9f379f7

Rule Number

12