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
test777test777 

compare the changed text field value with default value of text field value invalidation rules.

Hi all,

 i want to write validation rule for text field name as sample and its default value is 'Test'. When i create the record first time its value is saved as usually.But when i try to edit the record at that time sample field does not allowing the value as Test.Need to change that value in second time.Any one can u please help me that.

 

Thanks in advance.

hchhch

Use the following validation rule:

 

IF( ISNEW(), FALSE,
         IF(AND(PRIORVALUE( sample__c ) =="Test" , sample__c =="Test" ),
         TRUE, FALSE))