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
ChermaduraiChermadurai 

Radio button in pagination

Hello..

 

The page wizard contains 4 page. in first page,When i select radio boutton and moved to next page ,Now i need to go previous page again,So i clicked previous button and return to first page but the Radiobutton have nt selected which i clicked...

 

Plz help..

Rahul SharmaRahul Sharma
You need to have same controller for that and use pagereference setRedirect as false, in that way the state will be maintained in between two pages.
ChermaduraiChermadurai

Ragul,

 

It returns the previous page fine..but the radio button i selected have nt checked...

ChermaduraiChermadurai

Rahul..

 

i used like this...

 

public PageReference step1() {

PageReference p = Page.page1;
p.setRedirect(false);
return p;

 

public PageReference step2() { 

PageReference p = Page.page2;
p.setRedirect(false);
return p;

ChermaduraiChermadurai

There are so my radio buttonin page 1......i selected one and click next....Now the thing when i clicked previous button the selected radio button is to be selected by default......

 

 

only it returns the previous page ..