[Html-widget] multiple select with constrain_options

Carl Franks fireartist at gmail.com
Mon Jan 15 09:20:59 GMT 2007

On 15/01/07, Carl Franks <fireartist at gmail.com> wrote:
> On 14/01/07, Hal Finkel <half at halssoftware.com> wrote:
> > Hello,
> >
> > It seems that creating a multiple-item Select widget with
> > constrain_options(1) does not allow for none of the items to be
> > selected. Is this the intended behavior?
> Is it causing a problem?
> If no items are selected, no value for the Select will be posted.
> As long as you haven't also added a Required constraint, there should
> be no error.
> If you want to allow no items to be selected, don't use a Required constraint.

Oops, my mind is now too used to the H-W rewrite I'm working on - I
meant the "All" constraint, not "Required".

Also, I've just done a test, and even if an All constraint were added,
there would still be no errors, because nothing is sent at all for a
multi-select element when no items are selected.


More information about the Html-widget mailing list