Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you are not sure what each of these does, edit them in the regular user interface, then update Mavens Mate so it helps to make sense. Then you can try to get some consistency throughout your app by quickly setting the right values and then saving the object. See https://www.salesforce.com/us/developer/docs/api_meta/Content/meta_searchlayouts.htm for more details. 

Validation Rules

Code Block
languagexml
     <validationRules>
        <fullName>Billing_State_in_Aus</fullName>
        <active>true</active>
        <description>Check that the Billing State is correct in AUS</description>
        <errorConditionFormula>AND (
OR(BillingCountry = &quot;Australia&quot;, BillingCountry=&quot;Aus&quot;, ISBLANK(BillingCountry)),
OR(
LEN(BillingState) &lt; 2,
NOT(
CONTAINS(&quot;WA:SA:NT:NSW:QLD:VIC:ACT:TAS&quot;, BillingState)
)))</errorConditionFormula>
        <errorDisplayField>BillingState</errorDisplayField>
        <errorMessage>The state must be a valid Australian State. WA,SA,NT,NSW,QLD,VIC,ACT,TAS, or enter a Country other than Australia.</errorMessage>
    </validationRules>

...