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
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