I thought of a structure like this:
elements:
- type: Text
name: forename
- type: Text
name: surname
- type: Hidden
name: fullname
filters:
- type: Join
fields: [forename, surname]
join_by: " "
and if fullname is a column in the dbic model it'll be saved.
bad idea?
Am 30.04.2008 um 16:31 schrieb Carl Franks:
2008/4/30 Moritz Onken <[EMAIL PROTECTED]>:
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
_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu