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
chvl narayanachvl narayana 

I want to go to previous page

I want to go to previous page in that values are null when i click previous buttons
direct me 

 
DeepthiDeepthi (Salesforce Developers) 
Hi,
Could you please elaborate your question?

Regards,
Deepthi
JyothsnaJyothsna (Salesforce Developers) 
Hi Narayana,

You can use same controller for the both pages.

Hope this helps you!
Best Regards,
Jyothsna
chvl narayanachvl narayana
User-added imageUser-added image
chvl narayanachvl narayana
In the above pics 1. Enter values and click save button save the data in custom obj and go to  2 vf page
2. in second page there is a button Prev if we click that button redirect to 1st vf page
at there values are blank

How can we see those values
chvl narayanachvl narayana
Hi, All

There is no controllers between these two vf pages


Thanks,
Narayana
chvl narayanachvl narayana
Hi, 
This is the answer for this scenario 

<script>
function goBack() {
    window.history.back();
}
</script>