You need to sign in to do that
Don't have an account?
Gary Foreman
Mandatory field validation rule
How could I force the "close date" to be mandatory when the "delivery stage" is equal to Closed, Customer Quit or Failed at the opportunity level?
Field Names:
Close Date: CloseDate
Customer Quit
Closed
Failed
Delivery Stage (picklist) FN: Delivery_Stage API: Delivery_Stage__c
What I have so far:
AND(ispickval(Delivery_Stage__c,"Closed"), ispickval(Delivery_Stage__c,"Customer Quit"), ispickval(Delivery_Stage__c,"Failed"), (CloseDate =""))
Error: Incorrect parameter type for operator '='. Expected Date, received Text
Field Names:
Close Date: CloseDate
Customer Quit
Closed
Failed
Delivery Stage (picklist) FN: Delivery_Stage API: Delivery_Stage__c
What I have so far:
AND(ispickval(Delivery_Stage__c,"Closed"), ispickval(Delivery_Stage__c,"Customer Quit"), ispickval(Delivery_Stage__c,"Failed"), (CloseDate =""))
Error: Incorrect parameter type for operator '='. Expected Date, received Text
Sorry i forgot to mention the below one.
Opportunity Close Date is Standaed Field which is Mandatory by defaulted in Salesforce. So before the custom validation rule the Standard Rquired Fields checking will be fired by Salesforce. You are getting the standard required field error message.
So here you don't have to worry about the making the closedate as mandatory. But it is not possible to make the close date as mandatory based on some condtions it's always required.And No use of any Validation Rule here.
This Closeddate field will comes under the Always Displayed field in Pagelayout so you can't remove or can't make this field as Non Mandatory.
https://success.salesforce.com/ideaView?id=08730000000BqEzAAK
https://help.salesforce.com/articleView?id=000324084&type=1&mode=1
Thanks,
Maharajan.C
All Answers
AND(OR(ispickval( Delivery_Stage__c,"Closed" ), ispickval(Delivery_Stage__c,"Customer Quit"), ispickval(Delivery_Stage__c,"Failed")), ISNULL(CloseDate))
Thanks,
Maharajan.C
Sorry i forgot to mention the below one.
Opportunity Close Date is Standaed Field which is Mandatory by defaulted in Salesforce. So before the custom validation rule the Standard Rquired Fields checking will be fired by Salesforce. You are getting the standard required field error message.
So here you don't have to worry about the making the closedate as mandatory. But it is not possible to make the close date as mandatory based on some condtions it's always required.And No use of any Validation Rule here.
This Closeddate field will comes under the Always Displayed field in Pagelayout so you can't remove or can't make this field as Non Mandatory.
https://success.salesforce.com/ideaView?id=08730000000BqEzAAK
https://help.salesforce.com/articleView?id=000324084&type=1&mode=1
Thanks,
Maharajan.C
"Its Standard Field and Mandatory you Cannot change the Setting to UnRequired.
The only way to change this is to use a custom visualforce page and controller to modify this functionality."
Is it still possible to do what I am asking or am I out of luck? If it is possible, how do I create this custom visualforce page?