[html-formfu] Join two fields?

Carl Franks fireartist at gmail.com
Wed Apr 30 15:31:20 BST 2008


2008/4/30 Moritz Onken <onken at houseofdesign.de>:
> I'm writing a filter right now but I have no idea how I can get the values
> of other fields in the filter() method.
>
>  cheers
>
>  Am 18.04.2008 um 20:12 schrieb Moritz Onken:
>
>
>
>
> > Hi,
> >
> > I looked at all elements and filters but I couldn't find one which joins
> two fields.
> >
> > Example:
> > I have the fields "street" and "street number". The database has only one
> field for both (address). The individual fields will not be stored.
> > Can FormFu join these two fields?
> >
> > If there is no such thing I'll write a filter and publish it.
> > cheers,

This is quite good timing, as I'm just this minute looking at zby's
work on "Composed" elements.

I thing this would probably be the correct approach to achieve this,
as there would be major limitations on using just a Filter - for
example, it wouldn't work with HTML-FormFu-Model-DBIC - because there
would be no field named 'address', it still wouldn't get saved to the
database.

Carl



More information about the HTML-FormFu mailing list