You need to sign in to do that
Don't have an account?
dlcsfadmin
Picklist to return null value
Does anyone know how to return a null value validation rule against a picklist? As you can see below, the offer_declined__c field is a picklist datatype. I want to make sure that if the user selects 7c - Candidate Withdrew event type the offer declined field must be blank
AND(
ISPICKVAL( Event_Type__c , "7c - Candidate Withdrew"),
NOT ISNULL(Offer_Declined__C ))
AND(
ISPICKVAL( Event_Type__c , "7c - Candidate Withdrew"),
NOT ISNULL(Offer_Declined__C ))
Hello dlcsfadmin,
I think you are looking for ISPICKVAL(Offer_Declined__c, "") which will return true if there is not a value chosen in the picklist. You can utilize the NOT() as you need to beyond that.
AND(
ISPICKVAL( Event_Type__c , "7c - Candidate Withdrew"),
NOT ISPICKVAL(Offer_Declined__c, ""),
NOT ISPICKVAL( Offer_Not_Extended__c , ""))
This should do what you want. If either of the picklists have values you want it to error out.
AND(
ISPICKVAL( Event_Type__c , "7c - Candidate Withdrew"),
OR(
NOT(ISPICKVAL(Offer_Declined__c, "")),
NOT(ISPICKVAL( Offer_Not_Extended__c , ""))
)
)