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
northcountrygalnorthcountrygal 

Possible to write a validation rule that can evaluate if a field contains SAVED data?

I need a validation rule that can 

 

If the Reject comments field does not contain SAVED data (not that it is empty) and the picklist value = Rejected = error message

 

Is there a function that can help me evaluate if a field contains SAVED data?

 

AND
(
(LEN (Reject_comments__c) = 0),
ISPICKVAL( ts2__Status__c, "Rejected"))

Best Answer chosen by Admin (Salesforce Developers) 
@anilbathula@@anilbathula@
Hi strekte9,

what actually you need.you want validation rule when the picklist value is rejected and Reject comments is null then you want to through error message.
Then try this
AND(ISPICKVAL( ts2__Status__c, "Rejected"),ISBLANK(Reject_comments__c))