[Html-widget] Select and '0' value
ted at tedcarnahan.com
Sat Sep 2 06:42:46 CEST 2006
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.
> Any ideas on how to fix this?
> -- Toby
> Html-widget mailing list
> Html-widget at lists.rawmode.org
More information about the Html-widget