You need to sign in to do that
Don't have an account?

Validation rule to force a field when lead is at a certain stage
I am trying to see where I have gone wrong with the following validation rule - I am simply wanting to force three fields when a lead status is set to Qualified. Currently, the error pops even when the lead status is Open? I have tried dozens of different formulas, to no avail.
AND(OR(
ISPICKVAL(Status__c , "Qualified"),
(OR((
ISPICKVAL( Channel_Type__c , "")),
ISPICKVAL( Channel_Partner__c , ""))),
ISPICKVAL( Channel_Source__c , ""))
)
I also tried the following, but no error popped up:
AND( ISPICKVAL(Status__c, "Qualified"),
OR( ISBLANK(TEXT(Channel_Type__c)),
ISBLANK(TEXT(Channel_Partner__c)),
ISBLANK(TEXT(Channel_Source__c)) ) )
TIA
AND(OR(
ISPICKVAL(Status__c , "Qualified"),
(OR((
ISPICKVAL( Channel_Type__c , "")),
ISPICKVAL( Channel_Partner__c , ""))),
ISPICKVAL( Channel_Source__c , ""))
)
I also tried the following, but no error popped up:
AND( ISPICKVAL(Status__c, "Qualified"),
OR( ISBLANK(TEXT(Channel_Type__c)),
ISBLANK(TEXT(Channel_Partner__c)),
ISBLANK(TEXT(Channel_Source__c)) ) )
TIA
So you have use like below.
AND(OR(
ISPICKVAL(Status,"Qualified"),
(OR((
ISPICKVAL( Channel_Type__c , "")),
ISPICKVAL( Channel_Partner__c , ""))),
ISPICKVAL( Channel_Source__c , ""))
)
Thanks,
Saravana
All Answers
Can you please let me know the data type for channel type ,channel partner and channel source fields ?
Thanks,
Saravana
AND( ISPICKVAL(Status__c, "Qualified"),
OR( ISPICKVAL(Channel_Type__c," "),
ISPICKVAL(Channel_Partner__c," "),
ISPICKVAL(Channel_Source__c," ")
THANKS,
Saravana
AND( ISPICKVAL(Status__c, "Qualified"),
OR( ISPICKVAL(Channel_Type__c,""),
ISPICKVAL(Channel_Partner__c,""),
ISPICKVAL(Channel_Source__c,"")))
Thanks,
Saravana
My first formula (as below) worked, but it was triggering when the lead status was open.
AND(OR(
ISPICKVAL(Status__c , "Qualified"),
(OR((
ISPICKVAL( Channel_Type__c , "")),
ISPICKVAL( Channel_Partner__c , ""))),
ISPICKVAL( Channel_Source__c , ""))
)
Thanks,
Saravana
So you have use like below.
AND(OR(
ISPICKVAL(Status,"Qualified"),
(OR((
ISPICKVAL( Channel_Type__c , "")),
ISPICKVAL( Channel_Partner__c , ""))),
ISPICKVAL( Channel_Source__c , ""))
)
Thanks,
Saravana