Data Validation Rule | Salesforce Exam ADX-201 | Essentials for New Lightning Experience Administrators

What else must you define when defining a Data Validation Rule?

Prev Question Next Question

Question

When you define a Data Validation Rule, what else must you also define?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

When defining a Data Validation Rule in Salesforce, you must also define an error message in addition to the rule itself. The error message is displayed to users when the rule is violated and prevents the record from being saved. The purpose of the error message is to provide users with information on why the record is not being saved and what needs to be corrected.

So the correct answer is B. An Error Message.

Option A is not required when defining a data validation rule. You can choose whether or not a field is required when creating the field itself, and it doesn't have any relation with the validation rule.

Option C is not directly related to Data Validation Rule. However, you can define email alerts to be sent based on record changes in Salesforce, but it is a separate process.

Option D is also not related to Data Validation Rule. Deleting a record is an extreme step and should not be part of a data validation rule. If a record needs to be deleted, it should be done manually, after reviewing the record, and determining that it is no longer needed.