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
CRTV MC Tracking UserCRTV MC Tracking User 

Validate encrypted field

Hi,
I am trying to write a validation rule against an encrypted field and getting the error:  Error: You referenced an unsupported field type called "Text (Encrypted)" using the following field: Password__c.  

The forumla I am using is:  IF(ISBLANK(Password__c),0,1).  What am I missing?
 
FearNoneFearNone
crtv,

use LEN instead of ISBLANK for encrypted text.
IF(LEN(Password__c)==0,0,1)

User-added image
CRTV MC Tracking UserCRTV MC Tracking User
FearNone,
I tried that but still getting the error:  Error: You referenced an unsupported field type called "Text (Encrypted)" using the following field: Password__c
FearNoneFearNone
my bad. formula field does not support encrypted text according to the salesforce document. 
but maybe you can ask salesforce to enable it for you. 

https://releasenotes.docs.salesforce.com/en-us/winter17/release-notes/rn_security_pe_formula_flow_pb.htm