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
sfdclivesfdclive 

Page Refreshment

Please tell me the code  for  page refreshment after saving a record in visualforce page.

 

 

Best Answer chosen by Admin (Salesforce Developers) 
JK84JK84

Hi,

 

Please try adding the following code after your record is saved.

 

PageReference pageRef = new PageReference(ApexPages.currentPage().getUrl());
pageRef.setRedirect(true);
return pageRef;

 

Thanks

JK

 

PS: Please mark this as solution and hit kudos, if it solves your problem. It will make the solution available for others.