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
Siva@51Siva@51 

Can my record completely refreshes itself upon a field update?

Hi,
When I am editing a record, a field is updating itself coz of workflow. I have also a visual force page used on that record, but it is not updating itself when I hit save. Again I have to refresh my page for that VF page to update (VF page has command buttons that are rendereing fields). So, How Can my record completely refreshes itself upon a field update?

Thanks,
 
Andy BoettcherAndy Boettcher
You can have a VF page rerender a section of the page, but if you aren't refreshing the controller value you'll get the same values on the page.  Can you share your code?
IshwarIshwar
@Siva
If you are having full VF page and not inline.. try below:
Javascript:
function reloadGo()
{
   location.reload(); 
}
Update your commandButton as below:
<apex:commandButton value="test" action="{!test}" oncomplete="reloadGo()" />
Siva@51Siva@51
VF page and Record has no connection. VF page just sits on top of the record and buttons in VF page renders depending on the fields. When the field switches to different value, Button wont appear until I refresh it manually. Coz VF page needs refresh to render the new value. (VF page is custom controller and Record is standard object)