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
nwbienwbie 

View State issues

Hi,

I have a force.com public site in wizard style where the user input is stored in the controller instance variable. After completing the different steps in wizard process the user should not be able to go back. For achieving this 'm reseting the instance variable after the steps are completed.

 

However when the user clicks browser back button, pages are rendered from the browser history and again the view state seems to be constructed. This does not serve the purpose.How do i achieve this?

 

I have seen the documentation on view state but still 'm confused.I also tried adding cache="false" but dint help.

 

Appreciate any help on this.

Sanchivan SivadasanSanchivan Sivadasan

wouldn't this create duplicate records? You already created a record I am assuming at the end of the wizard? Maybe you can create a unique field based on this and prevent them from that.