/
Validation rule: Candian_Postal_Codes_in_Address

Attention: Confluence is not suitable for the storage of highly confidential data. Please ensure that any data classified as Highly Protected is stored using a more secure platform.
If you have any questions, please refer to the University's data classification guide or contact ict.askcyber@sydney.edu.au

Validation rule: Candian_Postal_Codes_in_Address

Validation rule Details

Name

Candian_Postal_Codes_in_Address

Label

Candian_Postal_Codes_in_Address

Object

AQB__AQAddress__c

Active

No

Formula

AND(
OR( AQB__Country__c = "CA", AQB__Country__c = "Canada", AQB__Country__c ="CN"),
NOT(REGEX(AQB__PostalCode__c, "((?i)[ABCEGHJKLMNPRSTVXY]\\d[A-Z]?\\s?\\d[A-Z]\\d)?"))
)

Error message

Canadian postal code must be in A9A 9A9 format.

Error location

Postal Code

Related content

Validation rule: Canadian_Postal_Codes_in_Shiping_Address
Validation rule: Canadian_Postal_Codes_in_Shiping_Address
More like this
Validation rule: Canadian_Postal_Code_in_Mailing_Address
Validation rule: Canadian_Postal_Code_in_Mailing_Address
More like this
Validation rule: Canadian_Postal_Codes_in_Perm_Addres
Validation rule: Canadian_Postal_Codes_in_Perm_Addres
More like this
Validation rule: Canadian_Postal_Codes_in_Billing_Address
Validation rule: Canadian_Postal_Codes_in_Billing_Address
More like this
Validation rule: US_Postal_Codes_In_Address
Validation rule: US_Postal_Codes_In_Address
More like this
Validation rule: US_Postal_Codes_in_Permanent_Address
Validation rule: US_Postal_Codes_in_Permanent_Address
More like this