Purpose: Validation rules are written to maintain the integrity of the data.
Mandatory fields while writing a validation rule are Name, Formula and Error Message.
Name: Unique name of validation rule
Formula: The formula is written in a way that it evaluates to true for the condition in which you do not want your record to be saved.
Business Case: If opportunity stage is negotiation then discount is mandatory.
Formula for Business Case: Ispickval(stage,'negotiation') && Isblank(discount)
Error Message: This is the message which will be displayed to the business users. The thumb rule is that it should be Short and Crisp.
Location of error message:
Error message can be placed at two places:
Top of the page: Displays error message at the top of the page
@ field: Displays error message at the field
No comments:
Post a Comment