[html-formfu] some questions
fireartist at gmail.com
Mon Sep 10 11:34:49 GMT 2007
On 07/09/2007, Jim Spath <jspath at pangeamedia.com> wrote:
> The first one is how to easily utilize values which have been altered by
> FormFu's validation. An example would be the TrimEdges filter. If a
> user enters a value like " foo " and we need to redisplay the form, I
> would like the prefilled value to be "foo".
To get this behaviour, set 'render_processed_value' to a true value.
You can set this at the form level to effect all fields, or set it at
the fieldset- or field-level.
One thing to beware is if you have Inflators on a field that create an
object, you'll need to ensure either that the object stringifies
correctly, or set "render_processed_value = 0" for that particular
More information about the HTML-FormFu