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
sudhirn@merunetworks.comsudhirn@merunetworks.com 

Validation on checkbox and date

Hi, 

 There are two field on a object called quote field names are 
  
 Quote_Expired__c  (Checkbox) 
  ExpirationDate  (date)

When Quote_Expired__c   = True user should not able to edit or make any changes to ExpirationDate   Please suggest me how to write a validation for this condition 

Thanks
Sudhir
   
Best Answer chosen by sudhirn@merunetworks.com
James LoghryJames Loghry
You should be able to write a validation rule such as:
 
AND(Quote_Expired__c,ISCHANGED(ExpirationDate))

All Answers

James LoghryJames Loghry
You should be able to write a validation rule such as:
 
AND(Quote_Expired__c,ISCHANGED(ExpirationDate))
This was selected as the best answer
sudhirn@merunetworks.comsudhirn@merunetworks.com
Thanks James is this correct ?

AND(Quote_Expired__c = True,ISCHANGED(ExpirationDate)) 
SteveMo__cSteveMo__c
James is correct.  With Checkbox fields you do not need to write = TRUE, just the API Fieldname will yeild the same result  
 
Jeet PadhyaJeet Padhya
Perfect, if its a checkbox, just use the API Name!!!