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
krishna chaitanya 35krishna chaitanya 35 

Need to add product related to opportunity in the opportunity new page.

Hi Team,

I have a scenario like i have to add products related to opportunity through visualforce page.can any one suggest how to proceed with this customization.User-added image

I want to click on Add product which it redirects to products page and after selecting products it should close the window and redirect to current new opportunity.

Thanks in Advance,
Krishna.
Best Answer chosen by Andy Boettcher
Andy BoettcherAndy Boettcher
Popup windows are tough in Visualforce - that is more of a client-side setting than something you can handle 100% of the time programmatically.  My opinion - you would have the user sent to a "Products" page when the "Add Product" button is clicked, then they would just be sent back to the page in your screenshot when they're done there.

That approach would mimic the "standard" Salesforce experience.