You need to sign in to do that
Don't have an account?
CharlesDou
customizing New Opportunity Controller.
Hi everyone:
I am trying to create a new opportunity with some information automaticly flowed from an Account. Which apex class should I modify? Or is there any other methods. Thanks a lot.
Hi Charles,
What kind of information you need to populate from Account when Opportunity record is created? You can use Formula fields or Trigger (it depends on your requirement) to populate Account data into Opportunity record.
Madhan Raja M
The information I need are some contact information such as email address and shipping address. I can do that with a trigger, but I would like the information to show on the page after I clicking the "new opportunity" button. Is there any way to do that?
I assume that, when New Opportunity button is clicked from Account related list, email address and shipping address should be populated in the Opportunity record? If yes, then this can be done with the help of Visualforce page and Custom controller.
Madhan Raja M
how to do that with a VF and Custom controller? Do I need to create a new VF?
Yes, we need to clone the Standard page layout to Visualforce page and write a extension class(Logic) for that Visualforce page.
Madhan Raja M