[html-formfu] multi stage forms

Mario Minati mario.minati at googlemail.com
Sat Oct 13 19:58:09 GMT 2007


On Saturday 13 October 2007 19:21:48 Ulrich Leodolter wrote:
> On Fri, 2007-10-12 at 20:00 +0200, Mario Minati wrote:
> > On Thursday 11 October 2007 23:35:38 Ulrich Leodolter wrote:
> > > hello,
> > >
> > > i'd like to implement a "multi stage form"
> > > (using Catalyst::C::HTML::FormFu)
> > >
> > > the first form has only 2 fields
> > > after submit these two fields are used
> > > to query a database (using XML::DOM::Parser)
> > >
> > > the results from the query should be used to
> > > fill a second more komplex form.
> > >
> > > i have no idea how to implement this so that
> > > it fits nice into Catalyst.
> >
> > Currently there is no special support for multiple stage forms.
> >
> > You just have to implement two separate forms.
> > If you want to implement them in a wizard style you have to care for the
> > logic and buttons your self.
>
> i have solved it by doing a post redirect to a second action
> which shows the more complex form.   any required fields except
> the submit button are filled.  the user can inspect all fields
> and maybe fill (not required) some extra fields.
>
> there is one thing:  i would like to suppress the error on the
> required submit button 'This field is required' (in german more
> bad 'Feld muss ausgefüllt sein', because cant fill a button)
>
> i think default submit should be required and no error message
> if not present.
>
> is there submit config option to suppress the error message?

why are you constraining your submit button?

you could do the redirect with an additional parameter to tell your second 
function that is beeing called internally or use a hidden field in the form.

Greets,
Mario



More information about the HTML-FormFu mailing list