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
teeshuteeshu 

I am trying to create validation rule, when closing the case if product type and component and subcomponent is empty to fill the values.

I am trying to create validation rule, when closing the case if product type and component and subcomponent is empty to fill the values.

AND(
OR(
ISBLANK(TEXT(Product_Type__c)),
ISBLANK(TEXT(Component__c)),
ISBLANK(TEXT(Sub_Component__c))
),
ISBLANK(Account.Name) ,
ISPICKVAL( Status, "Closed"),
RecordType.Name = "Support Case").

I have given defalut value as None in picklist fields.

This doesnt detect the null value for picklist values, not able to figure out why. Can some one please help what I am doing wrong.
Best Answer chosen by teeshu
SarvaniSarvani
Hi Teeshu,

I cheked the code in my org. If you give "None"as default value it should work. Probably, mistake is with the Record type name. Can you please check the record type name again, is it "Support Case" or "Support_Case". (Check in Record Type Name of Case object). Also, as per your code it gives error only if the "Account.Name" is blank. Do you want that happen or Account.name should not be BLANK. In that Case give NOT(ISBLANK(Account.Name)).

Note: Please make sure your rule is Active.

Hopes this helps! Please mark as solved if this solves your problem.

Thanks