/
Validation rule: US_Postal_Codes_in_Billing_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_Billing_Address

Validation rule Details

Name

US_Postal_Codes_in_Billing_Address

Label

US_Postal_Codes_in_Billing_Address

Object

Account

Active

No

Formula

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

Error message

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

Error location

Account.BillingPostalCode

Related content

Validation rule: US_Postal_Codes_in_Shipping_Address
Validation rule: US_Postal_Codes_in_Shipping_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: US_Postal_Codes_In_Address
Validation rule: US_Postal_Codes_In_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: Canadian_Postal_Codes_in_Billing_Address
Validation rule: Canadian_Postal_Codes_in_Billing_Address
More like this
Validation rule: Canadian_Postal_Codes_in_Shiping_Address
Validation rule: Canadian_Postal_Codes_in_Shiping_Address
More like this