You need to sign in to do that
Don't have an account?
thusker
More formula help -- Validation rule based on Amount and Stage
Yes . . . it's me again with another formula question.
Can anyone point me in the right direction to create a formula for a validation rule that would require a field to be filled out based on Opportunity Amount and Stage? Example: Our managers want to require "Win/Loss Reason" picklist field to be filled out if an opportunity is Closed and has an Amount of $100k or more. How would I create a formula that can look at the value of the Stage picklist and also the Amount?
Hi
How about this?
And(
IsClosed = True,
Amount >= 100,000,
IsPickVal(Loss Reason,"")
)
Thanks, Aiden . . . I'll try it!
Someday I won't be so lame with formulas, hopefully. Hard stuff for an English major . . . it's like a totally different language.
For me, I like to be able to copy and paste a working sample and then tweak it to meet my use case.
Or (IsPickVal(StageName,"Closed-Sold"),
IsPickVal(StageName,"Closed-NoSale")
),
Amount >= 100000,
IsPickVal(Loss_Reason__c,"")
)
Thanks, Aiden. I'll try that as well. I gave your first one a shot and it does seem to work. I was hoping to be able to use the validation rule to require a multi-select list to be populated, but it looks like I cannot choose that as a field to have the error warning above (and can't choose that field for use inside the validation rule formula either). So I set up a test in a developer org using just a regular picklist and it works. Will try your second suggestion right now. It would be better if I could get the multiselect list to work, but if need be I can switch to a picklist or two to get what we really need.
Thanks again for the help!
That way, when one of our reps marks a deal as Closed - Dropped, the field shows up as required and they are presented with the choices for why it was dropped. Same thing for when they mark a deal as Closed Lost - just different reasons. For all other stages, the field is greyed out.
Works like a charm!
Jane