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
Brad Nordling 9Brad Nordling 9 

How can I populate fields on my custom object that come from the Contact object - during entry/edit of the custom object?

I have a Contact object lookup field on the custom object to pick a person and another field called phone number, which should be populated with the phone number from the contact object as the user does the lookup.  I want to see the phone number change as the contact is chosen, not afterwards through a workflow.  TIA
Best Answer chosen by Brad Nordling 9
ShirishaShirisha (Salesforce Developers) 
Hi Brad,

Greetings!

Then you would need to override the entire page with the custom visualforce page to update the fields based on the contact Object.

Reference:https://salesforce.stackexchange.com/questions/28665/autopopulate-field-based-on-lookup-record

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri

All Answers

ShirishaShirisha (Salesforce Developers) 
Hi Brad,

Greetings!

Then you would need to override the entire page with the custom visualforce page to update the fields based on the contact Object.

Reference:https://salesforce.stackexchange.com/questions/28665/autopopulate-field-based-on-lookup-record

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri
This was selected as the best answer
Brad Nordling 9Brad Nordling 9
Could I use a flow screen?
 
Thomas Muller 9Thomas Muller 9
I needed some assistance to gather facts and resources for my research work. I used https://www.paraphrasingservice.com/ to help and get everything for me, so I could focus on more important work. They provided reliable services at affordable prices. I am really satisfied! Very professional, quick, reliable, well worth the money. Thanks a lot for their brilliant support. I would highly recommend their fabulous services to everyone.