Dependent values in formula validation in salesforce

 If you are looking for a formula in which the fields are dependent to each other than you can use below formula.

In below formula the validation is if user fills out Field A then Field B must also be filled and vice versa.

1
IF(ISBLANK(FieldA__c),0,1)+IF(ISBLANK(FieldB__c),0,1)=1


 If you have any question please leave a comment below.

If you would like to add something to this post please leave a comment below.
Share this blog with your friends if you find it helpful somehow !

Thanks
Keep Coding 

Post a Comment

0 Comments