[Html-widget] Select and '0' value
t at funkreich.de
Mon Sep 4 10:15:59 CEST 2006
Yep, I'm using the latest and greatest. I also read somewhere in the
archives that this was already fixed. Think I'll have to dive deeper
into it if nobody already has a fix for it.
> I was under the impression that this was fixed in more recent versions
> of HTML::Widget. Are you using 1.08?
> - Ted Carnahan
> On Fri, 2006-09-01 at 16:32 +0200, Tobias Kremer wrote:
> > I have defined a select element like this:
> > $w->element( 'Select', 'status' )->options( '0' => 'Disabled', '1' =>
> > 'Activated', '2' => 'Pending' );
> > Unfortunately, when submitting the form, option '0' => 'Disabled' is
> > considered as an error (I suppose because its value is '0') and the
> > form is tagged as invalid, although '0' is a perfectly valid value.
> > I have no explicit constraints on the form.
More information about the Html-widget