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
janareddyjanareddy 

Auto populate fields for based selecting lookup field ?

Hi  i have two objects A anad B , i have 3 fields  same in both objects and lookup relation is there, when i create B object recoird  i selecting lookup field automatically that three fields populate in B object what ever values in A object can help me Any one for this task?
Madhura BMadhura B
Hi Janareddy,

I presume Object B is the child record? If so you can create 3 formula fields in Object B which will copy values from Object A after you select the lookup field and save the record of Object B.

For example, I am considering text dataType, your formula will look like

ObjectA__r.Field1__c


If this resolves your issue, please mark this as the answer


asish1989asish1989
HI janareddy,

if there is no provision to change value of B object field then go for Formula field options.

Suppose there is requirement like while creating B object record, as soon as you choosed parent record then others three fields should be autopopulated in editable mode before clicking save button, At that time you can modify existing value.This can't be possible through formla field, you need to go for Trigger.

Important :

If this is what you where looking for then please mark it as a solution for others benefits.

Thank You