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
arunadeveloperarunadeveloper 

How to refersh Standard Page layout up on button click on visualforce page

Hi There how are you  ?

 

I have a requirement when i click button on visualforce page ,button should close the visualforce page and refersh the standard page layout.

 

basically the button will inserts  records on custom object  after insertinf it should close visulaforce and refersh standard page layout.

 

I was using parent.location java script function but it is not working it is refershing the visulforfce page .I need to close the visualforce page and refersh standard page layout.

Avidev9Avidev9
Well Standard pages and Visualforce pages are served from different servers. Probably you wont be able to refresh the standard page due to cross domain policy. Any JS access to parent frame will be declined by the browser.
arunadeveloperarunadeveloper

Thank's Avi, but don't we have anyother way to do that ?