Skip to main content
Hi,

 

I created a rule that says that you must fill out Billing Address in order to save changes to an Account (unless you're a system admin). 

 

AND( ISBLANK(BillingAddress), $Profile.Name <> "System Administrator" )

 

However, this allows the user to only enter Billing Country, and not require state if said billing country is United Stats (which messes with our territory model). 

 

How can I add this to the equasion? If billing country = United States, then Billing State is mandatory as well? 

 

Tried creating a separate rule, but it ddin't work 

 

and (BillingCountry ="united states",ISBLANK( BillingState ))

 

***Billing Country and State are not picklist fields, even though they appear so in the BillingAddress general field.

 

Thanks,

 

Julia
17 answers
  1. Jun 25, 2018, 8:26 PM

    ​AND( OR(ISBLANK(BillingCountry),

    IF(AND(OR(BillingCountry="United States",BillingCountryCode="US"), ISBLANK(BillingState)),TRUE,FALSE)), $Profile.Name <> "System Administrator")

     

    Give it one last try.
0/9000