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
kevinvw2000kevinvw2000 

Is it possible to refresh Opportunity screen from pop up visual force page?

I have a custom button on the standard lead screen.  When I click the button it opens a visual force page in a pop up window.  The visual force page has some buttons the user may or may not click.

One of the buttons updates the status of the lead record the they were on (screen behind the pop up window).

But when I close the pop up window the lead record screen behind it still shows the old lead status until I move off the lead record and back on it.

 

Is there any way to have the lead screen automatically refresh when they close the pop up visual force page?

 

Thanks,

 

Kevin.

 

sfdcfoxsfdcfox

You can try using JavaScript:

 

window.opener.location.refresh();

Use this in the oncomplete attribute of your button or link. You can also set a JavaScript window.onclose handler to refresh the parent page, too.