1 respuesta
Hi Nagaraj,Let us assume that you have also created a field Last_Revisit_Date__c in the object which determines the person last visited date and a checkbox Service Charge which will be true if last visited date is less than 7 days. So you can use the following validation rule.
If the Last_Revisit_Date__c is not less than 7 days from today the record will not be saved if checkbox is true.If you find it helpful, please mark it as best answer.Thanks.AND(
NOT(ISBLANK(Last_Revisit_Date__c)),
TODAY() - Last_Revisit_Date__c <= 7,
Service_Charge__c = true
)