You need to sign in to do that
Don't have an account?
dev_jh
Validation rule on PICKLIST
I must be doing something wrong, as I can´t believe this is so complicated.
I want to add a "Reason Lost" to my Opportunities. This new field will be a picklist.
I want to validate that, if the status is changed to "Closed - Lost" a "Reason Lost" must be entered.
If I have 3 reasons, let´s say: "Price", "Service", "Cancelled Operation"
Do I really need a formula like this?
AND(ISPICKVAL(Status, "Closed - Lost"), NOT(OR(ISPICKVAL(ReasonLost__c,"Price"),ISPICKVAL(ReasonLost__c,"Service"),ISPICKVAL(ReasonLost__c,"Cancelled Operation"))))
I would have hoped for a much simpler:
AND(ISPICKVAL(Status, "Closed - Lost"), NOT(ISNULL(ReasonLost__c)))
What am I doing wrong? or is this a limitation? (I can´t imagine if I want to do this for a picklist with 100 values!)
Thanks all!
I want to add a "Reason Lost" to my Opportunities. This new field will be a picklist.
I want to validate that, if the status is changed to "Closed - Lost" a "Reason Lost" must be entered.
If I have 3 reasons, let´s say: "Price", "Service", "Cancelled Operation"
Do I really need a formula like this?
AND(ISPICKVAL(Status, "Closed - Lost"), NOT(OR(ISPICKVAL(ReasonLost__c,"Price"),ISPICKVAL(ReasonLost__c,"Service"),ISPICKVAL(ReasonLost__c,"Cancelled Operation"))))
I would have hoped for a much simpler:
AND(ISPICKVAL(Status, "Closed - Lost"), NOT(ISNULL(ReasonLost__c)))
What am I doing wrong? or is this a limitation? (I can´t imagine if I want to do this for a picklist with 100 values!)
Thanks all!
AND(ISPICKVAL(StageName, "Closed Lost"), ISPICKVAL(Reason_Lost__c, ""))
The rule will check if the Stage = Closed Lost and no value has been selected in the Reason Lost field and will throw an error message.