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
Shilpa Goyal 9Shilpa Goyal 9 

how to set a input field value in vf page through controller

Hello everyone,

I have 2 vf page 
1. page1
2. page 2
page1 has 5 picklist field and 5 "Next" buttons
when user selects picklist value and click on next button then user will see 2nd page 
on 2nd page i have one back button, when back button click user will see 1st page with his/her selections.
now what is happening is if user will select only 1 picklist value and hit next button and again he hit back button then all picklist values got auto initialized with selected picklist values. it should not be happen.

if one picklist is selected then only that picklist should have value other should have black values.
I have 1 apex class for those 2 pages. so i want to fix current selections (whatever user will select). how can i achieve this?
Any help is appreciated.

Thank you!