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

Remembering entered data when navigating through visual force pages



I have a requirement where I have to navigate to Visual force pages i.e. from page 1 to 2 on button click.


On the second page I have command link where it gets me back to the previous page


now when I filter the data and click on command button and again get back the to original page the by clicking command link I want the data to remembered on 1 st page 


Thank You,

Anju Chacko QBAnju Chacko QB

Are you using same controller for both pages? 

no 2 different controller and 2 different pages
Anju Chacko QBAnju Chacko QB

try using same controller for both pages, so that it will hold the values while navigating.

cannot use the same controller ,
I need the functionality of back button with pre populating the old values

Either use same controller in both the pages or try implementing flows in salesforce which already has prev and next button prebuilt on it




Visit my blog here

is it not possible in any other way