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
nikkeynikkey 

Validation for past year ,current year and Next year

Can any one help me out .How to write a validation rule for the past ,present and future year on  a object.Can i call this field in a visualforce page .Any example plz

 


 



 

OR (
YEAR(Sales_Plan__c ) <> YEAR (today().year() ),
YEAR(Sales_Plan__c ) <> YEAR (today().year() + 1 )
)

 

 
ManojjenaManojjena
Hi Nikkey ,

Can you explain about your validation ,What excatly you want ? Which scenario it should fire ?