Hello all,

I have a form with a field filled in with a timestamp (via DateTime inflator) from a DB. The default stringification of the DateTime object is kinda ugly (2008-04-18T17:10:06)
so I have set up a strftime deflator for the field to format it properly.

This field is disabled therefore when the user submits the form, the field value is not sent to the server. After submission I re-display the form, but since the field was not sent the field is empty. I have set "retain_default" for the field and upon submission the field is displayed with the proper value from the DB.

The problem is that the second time (after submission) the deflation phase is skipped thus the ugly DateTime stringified value is displayed. Setting "render_processed_value" has no effect (probably because the field does not appear in the request sent to the server).

Is there another way to accomplish displaying a formatted value fetched from the database or am I overlooking something?

Kiki

_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to