+ Start a Discussion
devfredevfre 

Reg: how to make the lookup field as required?

how to make the lookup field as required if the  value of other field is not blank ? those two fields belongs to same object.. is it possible with the help of validation rule?

harsha__charsha__c

ISBLANK( candidate__c )

 

This will make the Field not to allow the null values

champvimalchampvimal

Let say Lookup field is "Look_Up__c" and other field is "Supporting_Field__c".

 

AND(NOT(ISBLANK(Supporting_Field__c)), ISBLANK(Look_Up__c))

 

Then,

 

throw a validation error on Look_Up__c field saying that you need to fill this field.

 

 

Thanks,

 

Vimal