Billing Zip/Postal Code should be in 5 digit format or certain digit format (99999 or 99999-9999 format) if billing country is USA - Validation Rule - Account

Billing Zip/Postal Code should be in 5 digit format or certain digit format (99999 or 99999-9999 format) if billing country is USA - Validation Rule - Account

Validation Rule on Account:

AND(
OR(BillingCountry = "USA", BillingCountry = "US"),
NOT(REGEX(BillingPostalCode, "\\d{5}(-\\d{4})?"))
)


Reference: https://help.salesforce.com/s/articleView?id=sf.fields_useful_validation_formulas_account_address.htm&type=5

Comments