How To Create A Validation Rule In Salesforce
- Log in to Salesforce: Access your Salesforce account.
- Go to Setup: Click on the gear icon in the top right corner.
- Find Object Manager: Search for and select "Object Manager" in the setup menu.
- Select Your Object: Choose the object where you want to create the validation rule.
- Navigate to Validation Rules: Click on "Validation Rules" in the left sidebar.
- Click New: Hit the "New" button to create a new validation rule.
- Name Your Rule: Provide a unique name for your validation rule.
- Enter Error Condition Formula: Write the formula that defines when the rule should trigger.
- Set Error Message: Type the message that users will see when the rule is violated.
- Select Error Location: Choose where the error message will appear (top of the page or field level).
- Save the Rule: Click "Save" to activate your validation rule.
- Test the Rule: Create or edit a record to ensure the validation rule works as intended.