Steve Bergman wrote:
> I have a form with a textfield that starts out blank.  When the user
> completes a singleselectfield the form is submitted by onchange=.  The
> validation fails (as I want it too)  the error handler gets control and
> sets values['my_text_field'] to a value based on what the user selected
> from the singleselectfield.  But the textfield never gets that value.
> (Although it does if I set the same values['my_text_field'] before the
> form is displayed the first time.)
>
> How can I change the text of a field in the error_handler?  I thought
> maybe setting a value in cherrypy.request.params might do it, but that
> doesn't work.

Hi Steve,

Change the input field value inside cherrypy.request.input_values.

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to