You need to sign in to do that
Don't have an account?
nelle3223
Validation Rule with picklists
I am trying to create a rule that if the activity Type is Bid Defense, Virtual Meeting or Meeting then the TA checkboxes must be filled in. Here is what i have so far but says missing a "(". if you can take a look that would be great.
IF(
(ISPICKVAL(Type, 'Meeting'), ISPICKVAL(Type, 'Bid Defense')) && ISPICKVAL(Type, 'Virtual Meeting'), NOT( Analgesia__c ),NOT( Infectious_Disease__c ), NOT( Canada_Phase_1__c ), NOT( Neurology__c ), NOT( Cardiovascular__c ), NOT( Oncology__c ), NOT( Dermatology__c ), NOT( Ophthalmology__c ), NOT( Endocrinology__c ), NOT( Psychiatry__c ), NOT( Gastroenterology_Hepatology__c ), NOT( Respiratory__c ), NOT( Hematology__c ), NOT( Women_s_Health__c ), NOT( Immunology_Inflammation__c ), NOT( Other__c )
))
IF(
(ISPICKVAL(Type, 'Meeting'), ISPICKVAL(Type, 'Bid Defense')) && ISPICKVAL(Type, 'Virtual Meeting'), NOT( Analgesia__c ),NOT( Infectious_Disease__c ), NOT( Canada_Phase_1__c ), NOT( Neurology__c ), NOT( Cardiovascular__c ), NOT( Oncology__c ), NOT( Dermatology__c ), NOT( Ophthalmology__c ), NOT( Endocrinology__c ), NOT( Psychiatry__c ), NOT( Gastroenterology_Hepatology__c ), NOT( Respiratory__c ), NOT( Hematology__c ), NOT( Women_s_Health__c ), NOT( Immunology_Inflammation__c ), NOT( Other__c )
))
This will throw an error if the type is one of the three values you listed, and any one of the checkboxes is not true.
IF(
(ISPICKVAL(Type, 'Meeting'), ISPICKVAL(Type, 'Bid Defense')) && (ISPICKVAL(Type, 'Virtual Meeting'), NOT( Analgesia__c ),NOT( Infectious_Disease__c ), NOT( Canada_Phase_1__c ), NOT( Neurology__c ), NOT( Cardiovascular__c ), NOT( Oncology__c ), NOT( Dermatology__c ), NOT( Ophthalmology__c ), NOT( Endocrinology__c ), NOT( Psychiatry__c ), NOT( Gastroenterology_Hepatology__c ), NOT( Respiratory__c ), NOT( Hematology__c ), NOT( Women_s_Health__c ), NOT( Immunology_Inflammation__c ), NOT( Other__c )
))
This should count up how many of the checkboxes have been checked and if the total is less than 1 (i.e. none have been checked), throw an error.