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
MOHAMMED AL IMAMMOHAMMED AL IMAM 

Only accept future dates in orderdate filed

I Just tried giving validation rules DATEVALUE(Order_Date__c) <= TODAY() .
Getting an error,How to reslove this?

 
Best Answer chosen by MOHAMMED AL IMAM
CharuDuttCharuDutt
Hii Maohammed
Try Below Validation
Order_Date__c <= TODAY()
Please Mark it As Best Answer If it Helps
Thank You!

 

All Answers

CharuDuttCharuDutt
Hii Maohammed
Try Below Validation
Order_Date__c <= TODAY()
Please Mark it As Best Answer If it Helps
Thank You!

 
This was selected as the best answer
MOHAMMED AL IMAMMOHAMMED AL IMAM
@charu Dutt

Thanks for your reply

This validation is working ,it should accept today's date and future date.

I have one more custom field in this,
Ship_Date__c

If order date is today or future date ,ship Date must be one week from date of order date
Ship_Date__c.

Note: here both order date and ship date should accept today date and future dates only.
how we can set validation for this?