Skip to main content

Hello All,

 

I 've created a formula to check the compliance of contacts.

The part with the control several phone fields doesn't work. I need to say if the Phone field is not Blank and starts with "("or with "+" and with a number so it's false otherwise it's true

 

My formula below :

OR(ISBLANK(TEXT(Salutation)),

OR(ISBLANK(FirstName)),

OR (LEN(FirstName)<2),

OR (LEN(LastName)<2), 

OR(ISBLANK(Email)), OR(AND(ISBLANK(Phone),ISBLANK(Direct_line__c),ISBLANK(MobilePhone))),  

OR (IF(NOT(ISBLANK(Phone)) || BEGINS((Phone),"+" )||BEGINS((Phone), "("  )|| ISNUMBER(Phone),false,true)),

OR (IF(NOT(ISBLANK(Direct_line__c)) || BEGINS((Direct_line__c),"+") ||BEGINS((Direct_Line__c), "("  )|| ISNUMBER(Direct_line__c),false,true)),

OR (IF(NOT(ISBLANK(MobilePhone)) || BEGINS((MobilePhone),"+" )||BEGINS((MobilePhone), "("  )|| ISNUMBER(MobilePhone),false,true)),

OR(ISBLANK(TEXT( Formalized_function__c))), OR(Inactive__c =TRUE))

 

How can I do ?

Thanks

10 respuestas
  1. 20 dic 2021, 3:51 p.m.

    Hi Delphine, that was just an example/excerpt , you would amd the list of values as needed 

     

    Like this

     

    AND(

    NOT(ISBLANK( Phone )),

    OR(

    CASE(LEFT( Phone , 1),

    '+',1,

    '(',1,

    0 ) = 1,

    ISNUMBER(LEFT( Phone , 1))

    )

    )