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
AK_SmithAK_Smith 

action="{!save}" does not refresh parent page

Hello!
im using action="{!save}" on my VF page in SF1. But when it close the window it does not refresh the page

how to fix it?
Akhil TandonAkhil Tandon
I guess you are using command button on VF Page. Please use thcode give below.
Give id to the page and use the redender tag on command button to refresh the page.

<apex:page id="pg">
    <apex:form >
        <apex:commandButton value="Save" action="{!Save}" reRender="pg"/>
        
    </apex:form>
</apex:page>

If it helps you, please mark is as best answer, so it will be helpful for other developers.
Dushyant SonwarDushyant Sonwar
Hi Smith ,
To refresh the page in Salesforce1 , you need to use the Salesforce1 javascript library for navigation and refresh.
https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/salesforce1_dev_jsapi_sforce_one.htm
AK_SmithAK_Smith
Thanks. But it will use cached copy