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
Sandy CartographerSandy Cartographer 

Prevent my back button in VF wizard from clearing form in the previous screen.

I have a "wizard" that is basically one VF page with multiple page blocks rendered according to different steps in it. I have a next and back button for each "screen" that changes the rendered variables in the controller. 
When I click on a back button after filling out a form, it clears the previous form. How do I prevent this? I have instantiated a new object and stored values of the fields in the next() method. However, these fields return null in the debugs, despite the fact that when I save on the last screen, the record gets inserted. 
bob_buzzardbob_buzzard
Can you post some of your code?  Otherwise anything we come up with will be based on guesswork.
Sandy CartographerSandy Cartographer
Thanks, Bob. It turns out the button on the page had the Immediate attribute set to true. This was causing the form to clear out.