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
Synthia B.Synthia B. 

Validation Rule: Picklist Field and Date Field

After Lead Consultant is chosen from the picklist, the task can not be saved without a Completed Date. I am getting 

Error: Field Final_Review_Lead_Consultant__c is a picklist field. Picklist fields are only supported in certain functions.

What am I missing? 

AND( 
 Completed_Date__c = TODAY(),
ISPICKVAL (Final_Review_Lead_Consultant__c=TRUE 
))

User-added image
Best Answer chosen by Synthia B.
Synthia B.Synthia B.
I used the following and it worked. 

AND( 
NOT(ISBLANK(TEXT(Final_Review_Lead_Consultant__c))), 
ISBLANK(Completed_Date__c) 
)

All Answers

Tugce SirinTugce Sirin
ISPICKVAL(Final_Review_Lead_Consultant__c, TRUE) is correct way not ISPICKVAL (Final_Review_Lead_Consultant__c=TRUE)
Synthia B.Synthia B.
Hi Tugce, 

I am getting Error: Incorrect parameter type for function 'ISPICKVAL()'. Expected Text Literal, received Boolean for 

AND( 
 Completed_Date__c = TODAY(),
ISPICKVAL(Final_Review_Lead_Consultant__c, TRUE)
)
Tugce SirinTugce Sirin
ISPICKVAL(Final_Review_Lead_Consultant__c, 'TRUE')
ISPICKVAL(Final_Review_Lead_Consultant__c, "TRUE")

It should be either one of them, I don't remember exactly which one.
Synthia B.Synthia B.
I used the following and it worked. 

AND( 
NOT(ISBLANK(TEXT(Final_Review_Lead_Consultant__c))), 
ISBLANK(Completed_Date__c) 
)
This was selected as the best answer