Hi Marc.
You don't "replace" the input; you get the values. form.values() gets them all; or you can poke at them field by field. The form object maintains the raw (unconverted) values, and the defaults, also.
You could certainly poke into the request object itself (assuming that it is designed to be read/write) but I'm not sure why you would want to do that. I'm assuming that you want the values from the input to be stored in a database or something; use form.values() for that; validated, converted input, ready-to-go.
Marc Saric wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi all,
again a (hopefully) simple question regarding WebWare and FormKit:
I want to transform user-input with help of the "_convert"-functions in FormKit.Validators. Works nice so far (i.e. input is converted), but it's somewhat unclear to me how to best handle the returned value.
Replacement of the input request with the transformed request does not happen out of the box (or I do something wrong) -do I need to write a helper function, which takes the output from _convert and replaces the original "request"-field? Is there a best way how to handle this.
Maybe I'm just tired this evening and start asking stupid stuff...
Thanks in advance.
- --
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss