Hi all,
  I want to use an hidden field in a form generated via simple form
widgets.

I managed to create the form (nothing troublesome here), but I fail to
see the "right" way to provide a value for the hidden field. The
places I feel would be right for doing so is either when passing the
form   object to the template for displaying or directly inside the
template as an argument of the .display() method.

I searched the API for a way of implementing both strategies, but I
failed to find an answer so far. Any hint?

What I'm doing at the moment is to dynamically create the form upon
each request adding the HiddenField with a "default" value (using they
keyword argument) which changes every time, but I feel like there
should be a better way to do that ...

Many thanks in advance,
Cheers.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to