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
anil Kumaranil Kumar 

Validations

Hi,

Can any one help me how to write vaidation rule for date field where user should enter only future date not current(todays)

Thanks,
Regards,
​Anil Kumar
Best Answer chosen by anil Kumar
Amit Chaudhary 8Amit Chaudhary 8
Please try below validation rule on Opportunity
 
closeDate < Today()

Let us know if this will help you

All Answers

Amit Chaudhary 8Amit Chaudhary 8
Please try below validation rule on Opportunity
 
closeDate < Today()

Let us know if this will help you
This was selected as the best answer
anil Kumaranil Kumar
Thanks for response Amit.

It is working for past dates but i am able save record with todays date. I should not save record with todays and past dates. Should be able to save records only with future dates.
Amit Chaudhary 8Amit Chaudhary 8
Try below. Then it will not allow you to save today date as well.

closeDate <= Today()

Please let us know if this will help you. if not then please share screen shot of your validation
anil Kumaranil Kumar
I got it amit. It works on the below. Thanks.

closeDate <= Today()