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
Rakshith RamachandraRakshith Ramachandra 

Copy information from Contacts to Opportunities

I have a picklist field A on contact record. picklist field B on contact opportunity record. They have the same name on both objects. 

When I'm on contact record and I click on new opportunity, I want the info from field A to get copied to field B when I click on "New opportunity" on Contact page.

What's the simplest way of doing this? Any ideas?

Hi Rakshith,

You have to overide button and pass values in URL as parameter. Please refer below document.

Please let meknow, if any moreinformation is required.
Rakshith RamachandraRakshith Ramachandra
Thanks for the reply. I went through the link, I feel there should an easier way to do it. I'm not too familiar with apex coding
yes there is no coding.

If you go to contact page related list and click on new button from opportunity related list, you will get below similar URL

Append above url with &fieldid={!Opportunity__c.Name}

Note To get fieldid-->> go toset up--> contact--> click on field--> from URL you will get ID

Now go to opportunity and add new button with above URL

Then from contact page layout remove standard button and add newly created custom one