Skip to main content
So this is my formula:

 

RecordType.DeveloperName = "U.S. Hair Class Event" && 

 

AND( 

 

ISPICKVAL( Hair_Brand__c,"American Crew"), 

 

AND( 

 

ISBLANK(TEXT(Second_Event_Name__c)), 

 

OR( 

 

ISPICKVAL(Event_Name__c,"American Crew Product Essentials"), 

 

ISPICKVAL(Event_Name__c,"American Crew Styling Methods"), 

 

ISPICKVAL(Event_Name__c,"Beard Sculpting"), 

 

ISPICKVAL(Event_Name__c,"Building the Mens Business"), 

 

ISPICKVAL(Event_Name__c,"Collection Demonstration"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The Boxer"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The Crew"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The Crop"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The Executive"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The Long American"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The Mod"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The Pompadour"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The Rebel"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The Short American"), 

 

ISPICKVAL(Event_Name__c,"Modern Classic Cut: The University"), 

 

ISPICKVAL(Event_Name__c,"Shave Demonstration"))))

 

It's supposed to throw an error anytime any of those Event Names are selected from the EVENT NAME picklist and the user doesn't also populated a value in the SECOND EVENT NAME picklist field.

 

It's not working...for example, a user can currently select "Modern Classic Cut: The Pompadour" from the EVENT NAME picklist and the user can leave SECOND EVENT NAME blank and it's letting them save the record...

 

Can someone help me understand what's wrong in my formula?
답변 10개
  1. 2017년 5월 13일 오후 5:37

    Well there you go. Your record type name isn't accurate. Use this:

    AND(

    RecordType.Name = "U.S. Hair Class" ,

    ISPICKVAL( Hair_Brand__c,"American Crew"),

    ISBLANK(TEXT(Second_Event_Name__c)),

    CASE(

    Event_Name__c,

    "American Crew Product Essentials", 1,

    "American Crew Styling Methods", 1,

    "Beard Sculpting", 1,

    "Building the Mens Business", 1,

    "Collection Demonstration", 1,

    "Modern Classic Cut: The Boxer", 1,

    "Modern Classic Cut: The Crew", 1,

    "Modern Classic Cut: The Crop", 1,

    "Modern Classic Cut: The Executive", 1,

    "Modern Classic Cut: The Long American", 1,

    "Modern Classic Cut: The Mod", 1,

    "Modern Classic Cut: The Pompadour", 1,

    "Modern Classic Cut: The Rebel", 1,

    "Modern Classic Cut: The Short American", 1,

    "Modern Classic Cut: The University", 1,

    "Shave Demonstration", 1,

    0

    ) = 1

    )

0/9000