/
Validation rule: Valid_US_State_in_Mailing_Address_Abbrev

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: Valid_US_State_in_Mailing_Address_Abbrev

Validation rule Details

Name

Valid_US_State_in_Mailing_Address_Abbrev

Label

Valid_US_State_in_Mailing_Address_Abbrev

Object

Contact

Active

No

Formula

AND (
OR( MailingCountry = "US", MailingCountry ="United States",MailingCountry ="USA", ISBLANK( MailingCountry )),
LEN( MailingCity )>0,
NOT(
CONTAINS("AL:AK:AZ:AR:CA:CO:CT:DE:DC:FL:GA:HI:ID:" &
"IL:IN:IA:KS:KY:LA:ME:MD:MA:MI:MN:MS:MO:MT:NE:NV:NH:" &
"NJ:NM:NY:NC:ND:OH:OK:OR:PA:RI:SC:SD:TN:TX:UT:VT:VA:" &
"WA:WV:WI:WY:AS:FM:GU:MH:PW:PR:VI", MailingState )
))

Error message

A valid two-letter state code is required.

Error location

Contact.OtherState

Related content

Validation rule: Valid_US_State_in_Mailing_Address
Validation rule: Valid_US_State_in_Mailing_Address
More like this
Validation rule: Valid_US_State_in_Address_Abbrev
Validation rule: Valid_US_State_in_Address_Abbrev
More like this
Validation rule: Valid_US_State_Shipping_Address_Abbrev
Validation rule: Valid_US_State_Shipping_Address_Abbrev
More like this
Validation rule: Valid_US_State_in_Address
Validation rule: Valid_US_State_in_Address
More like this
Validation rule: Valid_US_State_Permanent_Address_Abbrev
Validation rule: Valid_US_State_Permanent_Address_Abbrev
More like this
Validation rule: Valid_US_State_Permanent_Address
Validation rule: Valid_US_State_Permanent_Address
More like this