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 件の回答
  1. 2018年6月25日 20:26

    ​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.