0

Validation rule on Email and (phone or Mobile) must be field with values. I have also tried ISBLANK( MobilePhone ) || ISBLANK( Phone ) but I get validation on both fields and and if one of them has a value then lead can be converted

AND(
    IsConverted,
    OR(
        ISBLANK( Email ),
        ISNUMBER( MobilePhone ) || ISNUMBER( Phone ) 
    )
)

What am I missing?

1
  • try with below code. AND( IsConverted, ISBLANK( Email ), OR(ISBLANK( Phone ), ISBLANK(MobilePhone) ) ) Commented Oct 10, 2022 at 15:17

1 Answer 1

0

You need to change your validation rule like this:-

AND(
    IsConverted,
    OR(
        ISBLANK( Email ),
        AND(
            (
                NOT(ISNUMBER( MobilePhone )) ||
                ISBLANK(MobilePhone)
            ),
            (
                NOT(ISNUMBER( Phone )) ||
                ISBLANK(MobilePhone)
            )
        ) 
    )
)

so basically, you have to return true only when both mobilenumber and phone are not number or they are blank.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .