function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ANITHA BEEMUANITHA BEEMU 

validation for error message

HI can anyone help in validation rule,i have two checkbox fields A and B and 1 picklist field C,now i need to write a validation rule if A and B are checked (or) true,the value in field c cant be edited..i tried using this:

AND(
Field A = TRUE,
Field B = TRUE ,
OR(

ISPICKVAL(Field C ,'Purchaser')
)
)

but when i am edit field A its throwing validation error cant edit..can any one help.
Best Answer chosen by ANITHA BEEMU
VinayVinay (Salesforce Developers) 
Hi Anitha,

Try below
 
AND(
Field A = TRUE,
Field B = TRUE ,
ISCHANGED(ISPICKVAL(Field C ,'Purchaser'))
)

Thanks,