I'm having trouble with a validation rule with the following business logic:
User profile: $Profile.Name <>"ServiceAccounts",
Training Method is null: ISBLANK(TEXT(Training_Delivery__c))
AND
Educator Type (Training__c) field values are:
"CPT",
"CC"
"IT"
"ST"
Status (Status__c) Field values are:
"Complete"
"Rejected"
"Submitted"
"Approved"
"Paid"
I've tried variations of the logic with no success. Here is a snippet of what I am currently trying. Any help is appreciated:
AND(
$Profile.Name <>"ServiceAccounts",
ISBLANK(TEXT(Training_Delivery__c)),
(ISPICKVAL(Training__c,"CPT")),
ISPICKVAL(Status__c,"Complete"),
OR(
AND(
$Profile.Name <>"ServiceAccounts",
ISBLANK(TEXT(Training_Delivery__c)),
(ISPICKVAL(Training__c,"CPT")),
ISPICKVAL(Status__c,"Rejected"))))
4 件の回答
Hi Jared, You need an OR around your other picklist values for Training__c:
AND(
$Profile.Name <>"ServiceAccounts",
ISBLANK(TEXT(Training_Delivery__c)),
OR(
ISPICKVAL(Training__c,"CPT"),
ISPICKVAL(Training__c,"CC"),
ISPICKVAL(Training__c,"IT"),
ISPICKVAL(Training__c,"ST")
),
OR(
ISPICKVAL(Status__c,"Complete"),
ISPICKVAL(Status__c,"Rejected"),
ISPICKVAL(Status__c,"Submitted"),
ISPICKVAL(Status__c,"Approved"),
ISPICKVAL(Status__c,"Paid")
)
)