+ Start a Discussion

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.


Use the following validation rule:


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