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
PubNoahPubNoah 

Picklist Value required based on Checkbox

Hello,

 

I am trying to make a field required if a check box is selected, but I can't seem to get it right.  The check box is called "Is_Publisher_Currently_Live__c" and the field is called "AdSize_728x90__c."  

 

Below is what I created.  The problem is that the validation is not recognizing the "--None--" value of the picklist, since it is a default addition to the picklist.  As per someone's suggestion, I also tried to replace "--None--" with "empty," but to no avail.  Please help!

 

-----

AND( 
Is_Publisher_Currently_Live__c, 
ISPICKVAL( AdSize_728x90__c, "--None--") 
)

-----

 

Thanks,

Noah

Best Answer chosen by Admin (Salesforce Developers) 
Steve :-/Steve :-/

Try this:

 

AND( 
Is_Publisher_Currently_Live__c = TRUE, 
ISPICKVAL( AdSize_728x90__c, "") 
)