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
Geetha BGeetha B 

How to populate values into fields based on other field

I have an object name :sample it has a relation ship with oppourtunity .
I sample object i have 2 other fields say A,B which are there in opportunity,
I need to get values in these 2 fields based on the selected opportunity in sample object
PratikPratik (Salesforce Developers) 
Hi Geetha,

If your object Sample has relationship with opportunities then you can create the Formula field to capture the value from opportunity.

Thanks,
Pratik 
Geetha BGeetha B
Hi Pratik ,
Can u send the formula

 
PratikPratik (Salesforce Developers) 
Hi Geetha,

For example:
Account & contact are related:

So if I want to pull any filed's value from Account to Contact's filed:
I will create a formula field

There is a "test" field on contact and i want to populate Account's  field "Account number"

See the snapshot below:

User-added image
This is possible because Account & contact has relation. 
Hope this will help you to resolve your mentioned scenario.

Thanks,
Pratik