You need to sign in to do that
Don't have an account?
KateKHall
Canceling validation rules based on lead stage?
Hello Salesforce World!
I have a number of validation rules set up for leads.
This is for making sure details are there as the lead proceeds it's life from Lead to Opp.
However, I want to cancel most of my validation rules if in the discovery process the lead is unqualified or is to be closed.
Please Help!
I'm assuming during 'discovery process', the lead status is updated to 'unqualified' or 'closed'? If they are, you'll need to update the validation rules that you do not want to fire/trigger if the lead status = 'unqualified' or 'closed'.
Correct, during the discovery process either the information that needs to be filled in, must be entered, I set up validation rules for those.
Or if they are 'unqualified' or 'closed' I don't want those rules to fire.
I'm just not finding the code to kill the validation rule for those statuses.
I personally created the validation rules on the lead object.
I want to turn them off ONLY if the lead is marked unqualified.
So as an example:
Lead:
(All of these are gathered on their initial call or web submission.)
First name Last Name
Phone Email
Follow up Call:
(These have validation rules set up they must be filled out)
Size
Rental or Purchase
Approx start date of the project
However, they are disqualified in this call and we don't get some or all of the follow-up fields.
AS it stands if anyone tries to change the status to contacted qualified, I want those rules to run!
If its contacted unqualified, the rules still fire. I don't want them to. It's a dead lead and we don't need that information. And I don't want my reps filling in false info just to change the status! I want to kill the rule if the lead is unqualified.