You need to sign in to do that
Don't have an account?
JJenkins
Validation Rule in Leads
I'm trying to create a validation rule in the leads section that goes like this:
If the "Division" field (picklist) equals "this text" and the "lead status" (picklist) is equal or greater than "Qualified" then the "Product" field (picklist) is required.
Here is what I have so far
AND (ISPICKVAL (Division__c, "TEXT"), ( ISPICKVAL (Status, "Qualified, Top Qualified")), ISNULL ( SM_Product__c ))
I am getting the error of "Field SM_Product is a picklist field and cannot support "ISNULL"
Any help is appreciated. I am using P/E if that helps.
Thanks,
AND((ISPICKVAL( Division__c , "Staff Management")), AND(OR (ISPICKVAL (Status, "Qualified"), (ISPICKVAL (Status, "Top Qualified")))), AND(ISPICKVAL( SM_Product__c ,"")))
All Answers
I'm pretty sure that for picklist fields you have to use "" instead of ISNULL
Just an FYI, when you're posting code here you should use the [c] clipboard in the Editor, so you don't end up with a bunch of emoticons in your code.
Thanks for letting me know how to post code without smileys.
here is where I'm at now and it is saying i have an Extra start parenthesis
AND (ISPICKVAL (Division__c, "VALUE")) && ( ISPICKVAL (Status, "Qualified, Top Qualified")) && "" (" SM_Product__c" )
ISPICKVAL( SM_Product__c ,"")
We're getting close Stevemo - I can feel it.
thanks for all your help with this
AND (ISPICKVAL (Division__c, "Staff Management")) (ISPICKVAL (Status, "Qualified")), (ISPICKVAL (Status, "Top Qualified")) AND (ISPICKVAL( SM_Product__c ,""))
With the code above it is saying i have one to many left parenthesis
AND((ISPICKVAL( Division__c , "Staff Management")), AND(OR (ISPICKVAL (Status, "Qualified"), (ISPICKVAL (Status, "Top Qualified")))), AND(ISPICKVAL( SM_Product__c ,"")))
you're brilliant!
thanks
Thanks for the tip Jakester, I didn't know about the change to SF Formula Language
S:-/