[html-formfu] combo box equivalent

Carl Franks fireartist at gmail.com
Mon Aug 25 09:07:44 BST 2008


2008/8/24 Malcolm <mjh-formfu at liminalflux.net>:
>
> I've been learning my way around FormFu (and Catalyst) recently and
> wishing they'd been available a few years ago - they make things so much
> easier. :-)
>
> Is there a good way of doing a combo-box type element for a form? I've
> tried several variations, but so far I haven't found anything that doesn't
> end up requiring custom coding on the handler.
>
> This is the closest I've gotten, but their doesn't seem to be a way of
> enforcing the SingleValue constraint.

Because Multi is also a Field-element, when you add a constraint to
it, it doesn't get added to its children, unlike with other Block
elements.
If you add the constraint to one of the "country" fields, it should work.

On a side note - the recent threads about the Multi have made me
realise it needs looking at a bit more closely - I think we probably
also need a complimentary Block element that will provide the same
kind of layout as a Multi, but without the confusing differences that
a Multi has.

Carl



More information about the HTML-FormFu mailing list