You need to sign in to do that
Don't have an account?
CageMMA
Validation rule help please
Hi all:
I have the following scenario:
If Applicable = true then
Period Months is required
and Either Amount or Percentage needs to be filled.
Here is my validation rule which is not working.
AND( Is_There_a_Discount_Applicable__c = True && (ISPICKVAL(If_Yes_Period_months__c, "")), AND(ISBLANK(If_Yes_Percentage__c) && ISBLANK(If_Yes_Amount__c)), $User.Alias <> "Merge")
Now this works when I select Applicable = true and when the user clicks save it errors out. But then when you choose Period months and applicable = true then user hits save and it does not error out and saves the record, when it should error out and error out until percentage or amount is filled.
Thanks
Z
Hello CageMMA,
Have modified the rule for you, check:
Hope it helps.
All Answers
test 'ISBLANK' for pick list as well instaind "ISPICKVAL"
you will have to convert pick list value to text and then ISBLANK.
Regards,
Pankaj Raijade,
Hello CageMMA,
Have modified the rule for you, check:
Hope it helps.
Thank you for the solution Rahul, it helped but Can you make it so that If both Percentage and Amount are filled in it errors out... It has to be either or?
Thanks
Z
Sorry i did not get it, can you explain in brief.
So if Percentage AND Amount are both filled in it needs to error out... Only one of them can be filled in. Thanks