function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Firas Taamallah 12Firas Taamallah 12 

How to create validation rule on both Phone and Mobile field in Contact?

Hi ,

I want to create a validation rule on contact so  Mobile or phone should not be empty when saving a contact ?

Doesn anyone have an idea on how to achieve this?
Thanks,
Firas
Jitendra Singh ShahiJitendra Singh Shahi

Hi, 

please go to setup -> object Manger -> contact -> field and relationship and choose mobile or phone and click new on validation.

ISBLANK(MobilePhone)

and for Phone also

ISBLANK(Phone)

and then go to error message and write your custom message for error. (see below image for help)


User-added image

 

and if you are using classic then in setup search for contact then choose validation and click new.

I hope it helps. Please choose as answer if it help.

Firas Taamallah 12Firas Taamallah 12
No that's false , it should be setting in 1 VR . i guess i need to your OR
Jitendra Singh ShahiJitendra Singh Shahi
yes if you want to do it one validation:
OR(ISBLANK(MobilePhone),ISBLANK(Phone))