Skip to main content

I am struggling to create a validation rule.  I'm not well versed on them...

 

If the Record Type = "Project" then user can only choose picklist item "EFO" or "EV"

 

This does not seem to be the way it works...

 

IF(

   AND(RecordType.DeveloperName = "Project"),

    OR(

       ISPICKVAL(Primary_Business_Unit__c , "EFO"),

                 (Primary_Business_Unit__c , "EV")

   )

      )

3 Antworten
  1. 21. Feb. 2024, 09:00
    Hi @Pam Martin

    ,

    Try this

    AND(

    RecordType.DeveloperName = "Project",

    NOT(

    OR(

    ISPICKVAL(Primary_Business_Unit__c, "EFO"),

    ISPICKVAL(Primary_Business_Unit__c, "EV")

    )

    )

    )