Challenge
Create a Validation Rule on Contact that validates that both the contact's MailingCity and MailingCountry are populated if the MailingStree is populated. If either are not populated, this error message should display: Mailing City and Mailing Country are both required when Mailing Street is populated.
.
Example Scenarios:
Scenario 1:
Input:
MailingStreet: "123 Main Street" MailingCity: "" MailingCountry: "" Result: Display Error Message
Explanation: MailingStreet is populated, but MailingCity and MailingCountry are not
Scenario 2:
Input:
MailingStreet: "330 Trinity Lane" MailingCity: "Dallas" MailingCountry: "United States" Result: No Error Message
Explanation: MailingStreet is populated, and so are MailingCity and MailingCountry
Scenario 3:
Input:
MailingStreet: "326 Sheeva Street" MailingCity: "Austin" MailingCountry: "" Result: Display Error Message
Explanation: MailingStreet is populated, but MailingCountry is not
Scenario 4:
Input:
MailingStreet: "" MailingCity: "Amsterdam" MailingCountry: "Netherlands" Result: No Error Message
Explanation: MailingStreet is missing, so MailingCountry and MailingCity are not required.