Re: [html-formfu] Repeatable constraints

2009-12-10 Thread Carl Franks
2009/12/7 Doug Orleans : > > Also, I'm having a hard time figuring out how to make a constraint > requiring that at least one of the repeated fields is non-empty, > without making all of them be required.  Any ideas? There's now a Repeatable::Any constraint available in svn (r1649) it'll be includ

Re: [html-formfu] Repeatable constraints

2009-12-08 Thread Carl Franks
2009/12/7 Doug Orleans : > I'm having more woes with Repeatable and increment_field_names = 0, > this time with constraints: > > use HTML::FormFu; > > my $form = HTML::FormFu->new; > $form->elements({ type => 'Repeatable', increment_field_names => 0, >                  elements => [ { name => 'quan

Re: [html-formfu] Repeatable constraints

2009-12-08 Thread Carl Franks
Hi Doug, 2009/12/7 Doug Orleans : > I'm having more woes with Repeatable and increment_field_names = 0, > this time with constraints: > > use HTML::FormFu; > > my $form = HTML::FormFu->new; > $form->elements({ type => 'Repeatable', increment_field_names => 0, >                  elements => [ { nam