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
Naveen DhanarajNaveen Dhanaraj 

create a validation rule that  Next visit (date type) should be greater than the created date +30 days after

Hii Guys,
i have a object called medication.In that i have a field  Next visit (date type) should be greater than the created date +30 days after.What exactly i want is if  i choose a date with in 30days of created date it should throw an error.
my validation rule is  Next_Visit__c  =  CreatedDate  + 30 ...
can you help me regarding this issue
ManojSankaranManojSankaran
Hi Naveen,

Below is the code thsat you need to add to the validation rule.

DATEVALUE(CreatedDate) + 30 > Next_Visit__c

Please Mark it as answer if it solves your issue.

Thanks
Manoj S