11 ValidationRules Two

  • Upload
    vanu

  • View
    218

  • Download
    1

Embed Size (px)

DESCRIPTION

validation rules

Citation preview

Validations TwoStage RuleFormula:CASE( StageName ,'FirstInstalment', 1, 'Second Instalment', 1,'Qualification', 0,0) == 0MEssage: Stage must be either FirstInstalment or second instalmentlocation: stage* ON selctiing other than first or second instalment result is 0********************************************************************************************************** Weekend Validation Ruleopp tab - sc - view validation rules - CLick "more Examples"displays list of validation Rulessele "Date Validation"****************************************************Formula:CASE( MOD( CloseDate - DATE(1900, 1, 7), 7),0, 0,6, 0,1) = 0Result: Date must not WEEK end****************************************************Formula: CASE( MOD( CloseDate - DATE(1900, 1, 7), 7),0, 0,6, 0,1) = 1Result: Date mut not be WEEK DAy******************************************************************************************************Account ValidationsCUrrent and Previous Value must not similar***************************************************Formula:Name == PRIORVALUE( Name )Message:Current name and Previous values are SImilarlocation: Name***************************************************PHone ValidationFormulaNOT(REGEX( Phone , "[0-9]{3}-[0-9]{3}-[0-9]{4}"))Message:Phone number must be 999-999-9999* Regex : is Regular Expression******************************************************Fax ValidationFirst letter must be alphabetnext 3 chars must be DigitsFormula:NOT(REGEX( Fax , "([A-Z]\\d{3})?"))Message:Fax must be A999********************************************************Website validationwebsite must be .com onlyFormulaRIGHT( Website , 4) ".com"MessageOnly .com websites are accepted*****************************************************Display Error message, name is modified by other userFormula:and ( ISCHANGED( Name ), OwnerId $User.FirstName, $Profile.Name "System Administrator")Message: Name field must be modified by OWNER only*****************************************************Billingcity equlas 'hyd' or 'HYD"give error messageFormula CONTAINS( BillingCity , 'hyd')Message: Please enter city other than hyd**************************************************************************************************************Data managementREportsSecurityService cloudCustom Buttons, Internatiionlization