I want to show validation error if the selected lookup record type is not special. Below is the formula I am using.
ISPICKVAL(Type__c ,'In') && car__r.RecordType.Id <> '012q00000000V2R'
I have also tried creating recort type id formula field and record type name formula field and than compare with the value but that didn't help.Code for both of tham is as follows.
ISPICKVAL(Type__c ,'In') && car__r.RecordTypeId <> '012q00000000V2R'
ISPICKVAL(Type__c ,'In') && car__r.RecordTypeName <> 'Special'
None of the above code works as it does not give any error while I select type as In and select car from lookup of type Special.
Any help is really appreciated.