/
Validation rule: US_Postal_Codes_in_Shipping_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: US_Postal_Codes_in_Shipping_Address

Validation rule Details

Name

US_Postal_Codes_in_Shipping_Address

Label

US_Postal_Codes_in_Shipping_Address

Object

Account

Active

No

Formula

AND(
OR(ShippingCountry = "USA", ShippingCountry = "United States",ShippingCountry = "US",ISBLANK(ShippingCountry)),
LEN(ShippingCity)>0,
NOT(REGEX(ShippingPostalCode, "\\d{5}(-\\d{4})?"))
)

Error message

Zip code must be in 99999 or 99999-9999 format.

Error location

Account.ShippingPostalCode

Related content

Validation rule: US_Postal_Codes_in_Billing_Address
Validation rule: US_Postal_Codes_in_Billing_Address
More like this
Validation rule: US_Postal_Code_in_Mailing_Address
Validation rule: US_Postal_Code_in_Mailing_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
Validation rule: Canadian_Postal_Codes_in_Shiping_Address
Validation rule: Canadian_Postal_Codes_in_Shiping_Address
More like this
Validation rule: Canadian_Postal_Codes_in_Billing_Address
Validation rule: Canadian_Postal_Codes_in_Billing_Address
More like this