Re: QuickForm_Controller setDefaultAction not working

From: Date: Fri, 19 Aug 2005 01:36:00 +0000
Subject: Re: QuickForm_Controller setDefaultAction not working
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20472@lists.php.net to get a copy of this message
On 8/18/05, zorro <google@zguy.homeunix.com> wrote: > I have a 3 page wizard style form. I noticed that when I hit enter on > page 2 it goes back to page 1 - not what I wanted! This in spite of the > fact that I do a $this->setDefaultAction('next'); for the page. > > I checked the "wizard.php" example in the controller docs and it behaves > the same way. What am I missing here? Is it just broken? > > thanks for any suggestions... > There was a thread recently about this. I assume that you have a "previous" button and it comes before the "next" button? Well, the standard says that the first button found should act as if it was clicked. So either you switch the order of the buttons (not a great solution) or add a hidden "next" button somewhere before the "previous" button. -- Justin Patrin

« previous php.pear.general (#20472) next »