Validation Rules Examples in Salesforce

Here is the link to a cheat sheet for some useful validation rules that you can incorporate in Salesforce.com.

Some of the validation rules that I found useful are:

  • Postal code is in the correct format if the country is Canada or the US

  • State is valid if the country is Canada or the US

  • Country is a valid 2-letter ISO code

  • Number entered is an even or odd number

  • Number entered is a multiple of another number

  • Phone number is in the (999) 999-9999 format

  • Date entered is a weekday or a weekend

  • Date entered is the last day of the month

  • Conditionally require a field based on the value of another field

  • Only the record owner can make changes to a particular field

  • Cross-object validation rules

References & Useful URLs