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
sfdcdudesfdcdude 

Required option in lookup field

Hi Team,

I am not able to make the required checkbox to true for one lookup filed. Please see below. When I click on edit for this field. I am not able to see the option either. Please suggest.

User-added image
VinayVinay (Salesforce Developers) 
Hi Pradeep,

You can try below methods to make lookup field required.
>> Create a validation rule
ISBLANK(PLM_Approver__c)
>> Make field required on page layout

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
sfdcdudesfdcdude
Hi Vinay, I tried using page layout. But, Iam using those fields in lightning component. The solution you gave will work for me? Thanks.
CharuDuttCharuDutt
Hii Pradeep
In Setup>ObjectManager>Select Object
Go To Fields & Relationship Tab > Select Lookup Field Click Edit
Check The Required Checkbox As Shown in Below image
User-added image
Click Save

Or You Can Use Validation Rule
ISBLANK(PLM_Approver__c)
Please Mark It As Best Answer If It Helps
Thank You!
Suraj Tripathi 47Suraj Tripathi 47
Hi pradeep,

Check whether this field is set as the read-only mode or not from their specification.


If you find your Solution then mark this as the best answer. 

Thank you!

Regards 
Suraj Tripathi
zettrozettro
Hi pradeep! I faced the same problem with making lookup field to User object universally required. Lookup fields to any other objects than a User have this option. Have you already found a solution?